/* --- 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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F6F7F9;
  color: #204154;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
a {
  color: #204154;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F3B43A;
  outline: none;
}
ul, ol {
  margin: 16px 0;
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
button {
  cursor: pointer;
}
strong {
  font-weight: 600;
}

/* --- FONT FACE (FALLBACKS IN CASE NOT PROVIDED) --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* --- SPACING SYSTEM --- */
:root {
  --primary: #204154;
  --secondary: #F3B43A;
  --accent: #FFFFFF;
  --neutral-bg: #F6F7F9;
  --section-radius: 18px;
  --card-radius: 12px;
  --section-shadow: 0 4px 16px rgba(32,65,84,0.05);
  --card-shadow: 0 2px 8px rgba(32,65,84,0.07);
  --gap-xs: 8px;
  --gap-s: 16px;
  --gap-m: 24px;
  --gap-l: 32px;
}


/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #204154;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.05rem;
  margin-bottom: 9px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.35rem;
    margin-bottom: 14px;
  }
  h3 {
    font-size: 1.08rem;
  }
}
.content-wrapper > h1, .content-wrapper > h2 {
  margin-top: 0;
}
small {
  font-size: 0.88rem;
  color: #43596A;
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--neutral-bg);
  border-radius: var(--section-radius);
  box-shadow: var(--section-shadow);
}
@media (max-width: 600px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Specific Grids/Flex Layouts (no grid/columns!) */
.feature-grid, .property-grid, .accordion-list, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 28px 20px;
  flex: 1 1 280px;
  min-width: 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.feature-item img {
  width: 40px;
  height: 40px;
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 6px 26px rgba(32,65,84,0.09);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid, .property-grid, .card-container, .accordion-list, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
.card-container {
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 10px 32px rgba(32,65,84,0.12);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* Testimonials & Reviews Section */
.testimonials {
  background: #fafdff;
  border-radius: var(--section-radius);
  box-shadow: 0 4px 16px rgba(32,65,84,0.07);
  margin-bottom: 60px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0px 3px 12px rgba(32,65,84,0.10);
  color: #204154;
  max-width: 700px;
  border-left: 5px solid var(--secondary);
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 28px rgba(32,65,84,0.16);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card strong {
  color: #204154;
}

/* Legal and Factual Sections */
.legal, .filters {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 28px 20px;
  margin-bottom: 20px;
}
.filters {
  margin-top: 16px;
  color: #43596A;
  font-size: 1rem;
}

/* --- HERO --- */
.hero {
  min-height: 280px;
  background: linear-gradient(95deg,#fafdff 70%,#f3b43a18 100%);
  border-radius: var(--section-radius);
  display: flex;
  align-items: center;
  margin-bottom: 44px;
  box-shadow: var(--section-shadow);
  padding: 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 240px;
}
@media (max-width: 600px) {
  .hero {
    border-radius: 0;
    margin-bottom: 22px;
    min-height: 150px;
  }
  .hero .container {
    min-height: 130px;
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(32,65,84,0.037);
  border-bottom: 1.5px solid #F3B43A10;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1010;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 12px 20px 12px 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  color: #204154;
  padding: 7px 8px;
  border-radius: 6px;
  transition: background 0.12s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #f3b43a21;
  color: #F3B43A;
}
.cta-btn.primary {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 25px;
  border: none;
  margin-left: 28px;
  box-shadow: 0 2px 10px rgba(32,65,84,0.10);
  transition: background 0.18s, color 0.18s, transform 0.13s;
  display: inline-block;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: #F3B43A;
  color: #204154;
  transform: translateY(-2px) scale(1.035);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  background: #f3b43a;
  color: #204154;
  font-size: 2.1rem;
  line-height: 1;
  border-radius: 9px;
  border: none;
  padding: 5px 12px;
  margin-left: 18px;
  display: none;
  position: relative;
  z-index: 2041;
  box-shadow: 0 2px 8px rgba(32,65,84,0.07);
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #204154;
  color: #fff;
}

@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .cta-btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 2040;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 370px;
  height: 100vh;
  background: #fff;
  box-shadow: -5px 0 28px rgba(32,65,84,0.21);
  padding: 36px 16px 12px 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.6,0,0.3,1);
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  box-shadow: -5px 0 28px rgba(32,65,84,0.18);
}
.mobile-menu-close {
  background: none;
  color: #204154;
  font-size: 2.4rem;
  position: absolute;
  top: 14px;
  right: 20px;
  border: none;
  cursor: pointer;
  z-index: 2042;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #204154;
  padding: 12px 0 12px 4px;
  border-radius: 7px;
  transition: background 0.12s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f3b43a1a;
  color: #F3B43A;
}
/* Overlay for mobile menu darken */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; width:100vw; height:100vh;
  z-index: 2030;
  background: rgba(32,65,84,0.25);
}
.mobile-menu.open ~ .mobile-menu-backdrop {
  display: block;
}

@media (max-width: 600px) {
  .mobile-menu {
    width: 98vw;
    min-width: unset;
    padding-left: 14px;
  }
  .mobile-menu-close {
    top: 9px;
    right: 10px;
  }
}

/* --- SECTIONS & CARDS --- */
section {
  margin-bottom: 60px;
}
.card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 600px) {
  section {
    margin-bottom: 36px;
  }
}

/* --- BUTTONS --- */
.cta-btn, .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 11px 22px;
  border-radius: 22px;
  font-weight: 700;
  border: none;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(32,65,84,0.07);
  transition: background 0.18s, color 0.18s, transform 0.13s;
  margin-right: 12px;
}
.cta-btn.secondary, .cookie-btn.secondary {
  background: var(--secondary);
  color: #204154;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus, .cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #e0a938;
}
.cta-btn.primary:hover, .cta-btn.primary:focus, .cookie-btn.primary:hover, .cookie-btn.primary:focus {
  background: #F3B43A;
  color: #204154;
}
.cookie-btn.reject {
  background: #e7e7e8;
  color: #204154;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #dadada;
  color: #204154;
}

/* --- FOOTER --- */
footer {
  background: #204154;
  color: #fff;
  border-top: 6px solid #F3B43A10;
  padding: 40px 0 0 0;
  font-size: 1rem;
  margin-top: 72px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 30px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-nav a {
  color: #F3B43A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 0;
  transition: color 0.13s, text-decoration 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-top: 11px;
}
.footer-legal a {
  color: #dfdfdf;
  font-size: 0.97rem;
  margin-bottom: 1px;
}
.footer-legal a:hover, .footer-legal a:focus {
  color: #F3B43A;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.96rem;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  margin-right: 8px;
  vertical-align: -3px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    padding-bottom: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  footer {
    padding: 24px 0 0 0;
    font-size: 0.94rem;
  }
  .footer-nav, .footer-legal, .footer-contact {
    gap: 6px;
  }
}

/* --- ACCORDION-STYLE FOR FAQ --- */
.accordion-list {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.accordion-list .text-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 2px 8px rgba(32,65,84,0.07);
  padding: 20px 18px;
  transition: box-shadow 0.18s;
}
.accordion-list .text-section:hover, .accordion-list .text-section:focus {
  box-shadow: 0 8px 22px rgba(32,65,84,0.14);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: #204154;
  color: #fff;
  box-shadow: 0 -1px 20px rgba(32,65,84,0.16);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  z-index: 5000;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.25s cubic-bezier(0.7,0,0.3,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(140%);
  pointer-events: none;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    font-size: 0.98rem;
    padding: 18px 9px 26px 9px;
    gap: 13px;
  }
  .cookie-banner__buttons {
    flex-direction: column;
    gap: 9px;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  background: rgba(32,65,84,0.22);
  z-index: 5111;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.24s;
}
.cookie-modal-hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #204154;
  border-radius: 15px;
  box-shadow: 0 12px 50px rgba(32,65,84,0.24);
  padding: 36px 32px 28px 32px;
  width: 96vw;
  max-width: 400px;
  z-index: 5112;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 17px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #204154;
  cursor: pointer;
  z-index: 5113;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 0;
}
.cookie-toggle input[type='checkbox'] {
  accent-color: #F3B43A;
  width: 20px;
  height: 20px;
  border-radius: 6px;
}
.cookie-toggle label {
  font-size: 1rem;
  cursor: pointer;
}
.cookie-toggle.essential label {
  color: #8796a0;
}
.cookie-toggle.essential input {
  pointer-events: none;
  opacity: 0.5;
}
.cookie-modal-buttons {
  display: flex;
  gap: 11px;
  margin-top: 8px;
}
@media (max-width: 400px) {
  .cookie-modal {
    padding: 19px 3vw 19px 3vw;
    font-size: 0.98rem;
  }
}

/* --- MISC --- */
::-webkit-scrollbar {
  width: 9px;
  background: #f4f4f6;
}
::-webkit-scrollbar-thumb {
  background: #e7e7e9;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d3d3d8;
}

/* Utilities for margin and padding for last-child fixes */
.content-wrapper > *:last-child {
  margin-bottom: 0;
}
.card-container > *:last-child {
  margin-bottom: 0;
}

/* Success (Danke) page styling */
.thank-you {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #fafdff 70%, #f3b43a15 100%);
  border-radius: var(--section-radius);
  margin-bottom: 40px;
  box-shadow: 0 2px 14px rgba(32,65,84,0.07);
}

/* --- ACCESSIBILITY & FOCUS --- */
:focus {
  outline: 2px solid #F3B43A;
  outline-offset: 2px;
  z-index: 99;
}
button:focus, .cta-btn:focus, .cookie-btn:focus, a:focus {
  box-shadow: 0 0 0 3px #fdeec2dd;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 480px) {
  .container {
    padding: 0 5px;
  }
  .card, .feature-item, .legal, .filters { padding: 15px 8px; }
  .cookie-modal {
    padding: 10vw 3vw;
  }
}
