/* ======================================================
   HeimatKompass Vibrant Energetic CSS
   ======================================================
   - Vibrant + energetic style: electric accent colors (#DAA520 Gold, #E1E3E6 silver, #38D6AE teal, #EB4444 hot red, #13315C blue)
   - Only flexbox for all layouts (no grid, no columns)
   - Fully responsive, mobile-first
   - Montserrat for display/bold, Open Sans for body
   - Modern shadows, rounded cards, heavy contrast for CTAs
   - Micro-interactions & smooth transitions
   ======================================================*/
/* ===== CSS RESET & BASE ===== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #13315C;
  background: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #DAA520;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.7,.1,.3,1);
}
a:hover, a:focus {
  color: #EB4444;
  outline: none;
}
ul, ol {
  margin-left: 22px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 10px;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #13315C;
  line-height: 1.15;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; letter-spacing: -1px; }
h2 { font-size: 1.8rem; margin-bottom: 20px; }
h3 { font-size: 1.2rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1rem; }
p, .text-section {
  font-size: 1rem;
  color: #1B2340;
  line-height: 1.7;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.4rem; }
  p { font-size: 1.08rem; }
}
strong {
  color: #DAA520;
  font-weight: 700;
}
em {
  color: #13315C;
  font-style: italic;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 800px;
  padding: 24px 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(19,49,92,0.04);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 7px;
  }
  .content-wrapper {
    padding: 18px 0;
  }
}

/* ===== GLOBAL FLEX UTILS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #f7f8fc;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(19,49,92,0.10);
  padding: 28px 24px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s cubic-bezier(.7,.1,.3,1),
              transform 0.13s cubic-bezier(.52,.01,.63,1);
}
.card:hover, .card:focus {
  box-shadow: 0 8px 48px 0 rgba(34,201,255,0.14), 0 1.5px 8px #DAA52066;
  transform: translateY(-4px) scale(1.012);
  z-index: 1;
}
.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) {
  .card-container, .content-grid, .text-image-section {
    flex-direction: column !important;
    gap: 14px !important;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 2px 22px 0 rgba(19,49,92,0.10);
  margin-bottom: 20px;
  position: relative;
  border-left: 6px solid #38D6AE;
}
@media (max-width: 480px) {
  .testimonial-card {
    flex-direction: column;
    padding: 15px 9px;
    gap: 10px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== HEADER, LOGO, NAV BAR ===== */
header {
  background: #13315C;
  box-shadow: 0 7px 32px #13315C1d;
  position: sticky;
  top: 0; width: 100%;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 70px;
}
nav {
  display: flex;
  gap: 22px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
  font-size: 1.03rem;
  transition: color 0.17s cubic-bezier(.7,.1,.3,1);
  padding: 6px 2px;
  border-radius: 5px;
}
nav a:hover, nav a:focus {
  color: #EB4444;
  background: #fff1;
  outline: none;
}
.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  background: linear-gradient(92deg,#DAA520 70%,#38D6AE 100%);
  color: #13315C;
  border: none;
  padding: 12px 28px;
  border-radius: 28px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 16px 0 #DAA52055;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.18s, color 0.15s, box-shadow 0.16s;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(92deg,#EB4444 45%,#38D6AE 100%);
  color: #fff;
  box-shadow: 0 6px 24px #EB444444, 0 3px 24px #38D6AE66;
  outline: none;
}
.cta-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  background: #38D6AE;
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 #38D6AE33;
  transition: background 0.19s,color 0.19s,box-shadow 0.13s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #EB4444;
  color: #fff;
  box-shadow: 0 2px 12px 0 #EB444477;
  outline: none;
}
header img {
  height: 36px;
  width: auto;
  margin-right: 15px;
  vertical-align: middle;
}
@media (max-width: 992px) {
  nav {
    gap: 11px;
  }
  header .container {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  nav {
    display: none !important;
  }
  .cta-primary {
    display: none;
  }
  header .container {
    gap: 8px;
    min-height: 58px;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  margin-left: 8px;
  font-size: 2.1rem;
  background: #DAA520;
  color: #13315C;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 301;
  transition: background 0.15s, color 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #EB4444;
  color: #fff;
  outline: none;
}
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #13315CDC;
  width: 100vw;
  height: 100vh;
  z-index: 300;
  box-shadow: 0 8px 44px #13315C77;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.77,.06,.35,1), opacity 0.2s;
}
.mobile-menu.active {
  pointer-events: all;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: transparent;
  color: #fff;
  border: none;
  padding: 18px 19px 8px 1px;
  align-self: flex-end;
  margin-right: 20px;
  margin-top: 7px;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 311;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #EB4444;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 44px 0 0 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  padding: 13px 0;
  border-radius: 8px;
  transition: color 0.13s, background 0.17s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #DAA520;
  color: #13315C;
  outline: none;
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===== MAIN & PAGE CONTENT ===== */
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 700px) {
  main > section {
    margin-bottom: 30px;
    padding: 20px 6px;
  }
}
.text-section {
  margin-bottom: 16px;
}

/* ===== FEATURE/REGION CARDS (Top Wohnviertel, etc) ===== */
.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 12px;
}
.region-card {
  flex: 1 1 275px;
  min-width: 220px;
  background: #E1E3E6;
  color: #13315C;
  border-radius: 18px;
  box-shadow: 0 4px 22px 0 #38D6AE13;
  padding: 24px 18px;
  margin-bottom: 20px;
  border-left: 5px solid #DAA520;
  transition: box-shadow 0.16s, transform 0.12s;
}
.region-card:hover, .region-card:focus {
  box-shadow: 0 7px 32px #DAA52033, 0 2px 17px #38D6AE44;
  transform: scale(1.025);
  outline: none;
}
@media (max-width: 900px) {
  .region-list {
    gap: 13px;
  }
  .region-card {
    min-width: 140px;
    padding: 17px 7px;
  }
}
@media (max-width: 600px) {
  .region-list {
    flex-direction: column;
    gap: 11px;
  }
  .region-card {
    min-width: unset;
  }
}

/* ===== TABLES (for comparison section) ===== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.99rem;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 14px #13315C11;
  margin-bottom: 18px;
}
thead {
  background: #DAA520;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
}
td, th {
  padding: 13px 10px;
  border-bottom: 1px solid #e1e3e6;
  text-align: left;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody td {
  background: #E1E3E6;
}
thead th {
  font-weight: 700;
  font-size: 1.05rem;
}

/* ===== FAQ LIST (wie-kaufen, kontakt, etc) ===== */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 12px;
}
.faq-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #38D6AE1c;
  flex: 1 1 260px;
  padding: 20px 15px;
  margin-bottom: 20px;
  border-left: 4px solid #38D6AE;
  min-width: 170px;
  transition: box-shadow 0.13s,transform 0.13s;
}
.faq-item:hover, .faq-item:focus {
  box-shadow: 0 7px 24px #38D6AE33;
  transform: scale(1.015);
  outline: none;
}
@media (max-width: 800px) {
  .faq-list {
    gap: 9px;
    flex-direction: column;
  }
  .faq-item {
    min-width: unset;
  }
}

/* ===== FOOTER ===== */
footer {
  background: #13315C;
  color: #fff;
  padding: 40px 0 10px 0;
  margin-top: 40px;
  box-shadow: 0 -4px 22px #13315C11;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-nav, .footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #fff;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  border-radius: 5px;
  padding: 6px 2px;
  transition: background 0.17s,color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #DAA520;
  color: #13315C;
  outline: none;
}
.footer-brand img {
  height: 32px;
  width: auto;
  margin-right: 8px;
}
.footer-brand span {
  font-size: 0.99rem;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 8px;
  }
  .footer-nav, .footer-brand {
    margin-bottom: 7px;
  }
}

/* ===== BUTTON GENERAL ===== */
button, input[type="submit"] {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-radius: 7px;
  background: #DAA520;
  color: #13315C;
  padding: 12px 26px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 7px #DAA52022;
  transition: background 0.17s, color 0.13s, box-shadow 0.13s;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: #38D6AE;
  color: #fff;
  box-shadow: 0 4px 12px #38D6AE33;
  outline: none;
}

/* ===== TESTIMONIALS - HIGH CONTRAST ===== */
.testimonial-card p {
  color: #13315C;
  font-size: 1.07rem;
  margin-bottom: 11px;
  line-height: 1.44;
}
.testimonial-card span {
  font-size: 1rem;
  color: #38D6AE;
  font-weight: 800;
  letter-spacing: 0.01em;
}
@media (max-width: 460px) {
  .testimonial-card p { font-size: 0.97rem; }
}

/* ===== FORMS & TEXT LINKS ===== */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 10px;
  border-radius: 5px;
  border: 1.5px solid #E1E3E6;
  margin-bottom: 14px;
  font-size: 1rem;
  background: #fafafc;
  transition: border 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #DAA520;
  outline: none;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 5004;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  color: #13315C;
  border-top: 5px solid #DAA520;
  box-shadow: 0 -2px 30px #DAA52022, 0 1px 8px #EB444422;
  padding: 22px 30px 22px 22px;
  font-size: 1rem;
  justify-content: space-between;
  transition: transform 0.22s, opacity 0.26s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner__text {
  flex: 2 1 220px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  align-items: flex-end;
}
.cookie-btn {
  border-radius: 19px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 10px 18px;
  min-width: 120px;
  background: #38D6AE;
  color: #fff;
  border: none;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.16s, color 0.14s;
}
.cookie-btn.accept {
  background: #DAA520;
  color: #13315C;
}
.cookie-btn.reject {
  background: #EB4444;
  color: #fff;
}
.cookie-btn.settings {
  background: #E1E3E6;
  color: #13315C;
  border: 1px solid #DAA520;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #13315C;
  color: #fff;
  outline: none;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 11px;
    padding: 16px 5px 16px 10px;
    font-size: 0.97rem;
  }
  .cookie-banner__actions {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
  }
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-52%) scale(1);
  z-index: 8888;
  background: #fff;
  box-shadow: 0 14px 58px #13315C17, 0 2px 24px #38D6AE15;
  border-radius: 22px;
  max-width: 420px;
  width: 96vw;
  padding: 38px 26px 34px;
  transition: opacity 0.28s cubic-bezier(.6,0,.7,1),
              transform 0.18s cubic-bezier(.68,.08,.39,1);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,0%) scale(0.92);
}
.cookie-modal h2 {
  font-size: 1.45rem;
  margin-bottom: 16px;
  color: #13315C;
}
.cookie-modal .cookie-category {
  background: #f7f8fc;
  border-radius: 10px;
  padding: 14px 10px;
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.04rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal label {
  font-size: 1.05rem;
  color: #1B2340;
  margin-right: 12px;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #38D6AE;
  width: 19px;
  height: 19px;
}
.cookie-modal .info {
  color: #607196;
  font-size: 0.99rem;
  margin-bottom: 8px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal button {
  border-radius: 19px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  min-width: 120px;
  padding: 10px 18px;
  background: #38D6AE;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #DAA520;
  color: #13315C;
  outline: none;
}

/* ===== ANIMATIONS & MICRO-INTERACTIONS ===== */
.card, .region-card, .faq-item, .testimonial-card,
.cta-primary, .cta-secondary, .cookie-btn, .cookie-modal, .mobile-menu {
  will-change: transform, box-shadow, opacity;
}
.card, .region-card, .faq-item {
  transition: box-shadow 0.13s, transform 0.11s;
}

/* ===== UTILITY SPACING ===== */
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-36 { margin-top: 36px !important; }
.mb-36 { margin-bottom: 36px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }
.gap-20 { gap: 20px !important; }

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid #EB4444;
  outline-offset: 2px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
  background: #E1E3E6;
}
::-webkit-scrollbar-thumb {
  background: #DAA520;
  border-radius: 8px;
}

/* ===== TYPOGRAPHY SCALE (rem for flexibility, no clamp) ===== */
.display-xl { font-size: 2.8rem; font-family: 'Montserrat', Arial, sans-serif; font-weight: 900; }
.display-lg { font-size: 2rem; font-family: 'Montserrat', Arial, sans-serif; }
.display-md { font-size: 1.5rem; font-family: 'Montserrat', Arial, sans-serif; }
.display-sm { font-size: 1.1rem; font-family: 'Montserrat', Arial, sans-serif; }

/* ===== MISC. ===== */
hr {
  border: 0;
  border-top: 1.5px solid #E1E3E6;
  margin: 20px 0 14px 0;
}

/* ===== PRINT EDGES ===== */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu { display: none !important; }
  body { background: #fff !important; }
}
