/* ========================================================
   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, main, 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 {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  line-height: 1.5;
  background: #F7F7F0;
  color: #293347;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}

a:focus {
  outline: 2px solid #8C7056;
  outline-offset: 2px;
}

ul, ol {
  padding-left: 24px;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ========================================================
   TYPOGRAPHY
======================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #293347;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}
h4 {
  font-size: 1rem;
}
p, ul, ol, li, span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #293347;
  margin-bottom: 12px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: #293347;
}

/* ========================================================
   GENERAL LAYOUT CONTAINERS / Spacing
======================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 24px;
}

.content-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(41,51,71,0.12);
  transition: box-shadow 0.3s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(41,51,71,0.15);
  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;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(41,51,71,0.07);
  margin-bottom: 20px;
  border-left: 5px solid #8C7056;
  position: relative;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(41,51,71,0.14);
  border-left-color: #BFA06E;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(41,51,71,0.08);
  padding: 24px 20px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 0 220px;
  transition: box-shadow 0.3s, border-color 0.25s;
  margin-bottom: 20px;
  border-left: 3px solid #8C7056;
}
.feature-item img {
  width: 44px;
  height: 44px;
}
.feature-item:hover {
  box-shadow: 0 6px 24px 0 rgba(41,51,71,0.12);
  border-left-color: #BFA06E;
}

/* Article Previews in Ratgeber */
.article-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.article-preview {
  flex: 1 1 260px;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(41,51,71,0.06);
  padding: 20px 18px 16px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s;
  border-bottom: 3px solid #8C7056;
}
.article-preview:hover {
  box-shadow: 0 4px 16px rgba(41,51,71,0.13);
  border-bottom: 3px solid #BFA06E;
}

.faq-section ul li {
  margin-bottom: 20px;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  background: #293347;
  color: #fff;
  padding: 56px 0 56px 0;
  border-radius: 0 0 36px 36px;
  margin-bottom: 40px;
}
.hero h1, .hero h2, .hero p {
  color: #fff;
}
.hero .button-primary {
  margin-top: 20px;
}

/* Footer */
footer {
  background: #232A39;
  color: #fff;
  padding: 50px 0 24px 0;
  font-size: 1rem;
  border-radius: 34px 34px 0 0;
  margin-top: 60px;
}
.footer-menu, .footer-contact, .footer-branding {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}
.footer-menu {
  margin-bottom: 18px;
}
.footer-menu a {
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.18s;
  position: relative;
  padding-bottom: 2px;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #BFA06E;
}
.footer-contact span,
.footer-contact img {
  color: #ede8d7;
}
.footer-contact span {
  margin-right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96em;
}
.footer-branding {
  gap: 16px;
  margin-top: 14px;
}
.footer-branding img {
  width: 42px;
  height: auto;
}
.footer-branding span {
  font-size: 0.93em;
  color: #999CAA;
}

/* ================================================
   BUTTONS
================================================ */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #8C7056;
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 13px 34px;
  border-radius: 2em;
  border: none;
  box-shadow: 0 2px 10px rgba(41,51,71,0.07);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  letter-spacing: 0.01em;
  margin-top: 8px;
}
.button-primary:hover,
.button-primary:focus {
  background: #BFA06E;
  color: #293347;
  box-shadow: 0 4px 25px rgba(140,112,86,0.18);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #8C7056;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #8C7056;
  border-radius: 2em;
  padding: 11px 28px;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  margin-top: 8px;
}
.button-secondary:hover,
.button-secondary:focus {
  background: #8C7056;
  color: #fff;
  border-color: #BFA06E;
}

/* For cookie banners */
.button-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #8C7056;
  border: 1px solid #8C7056;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1em;
  border-radius: 1.5em;
  padding: 8px 20px;
  margin-right: 8px;
  transition: background 0.18s, border-color 0.18s, color 0.17s;
}
.button-tertiary:hover,
.button-tertiary:focus {
  background: #8C7056;
  color: #fff;
}

/* ================================================
   HEADER & MAIN NAVIGATION
================================================ */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 18px rgba(41, 51,71, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  border-radius: 0 0 24px 24px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 14px;
}
header a img {
  height: 42px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4em;
  align-items: center;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.08em;
}
.main-nav a {
  color: #293347;
  font-weight: 500;
  opacity: 0.87;
  position: relative;
  transition: color 0.17s, opacity 0.19s;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #8C7056;
  border-radius: 1px;
  transition: width 0.25s;
  margin-top: 3px;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 80%;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #8C7056;
  opacity: 1;
}

/* ------------------------------------------------------
   MOBILE MENU STYLES
------------------------------------------------------ */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 1080px) {
  .main-nav {
    gap: 18px;
  }
  .button-primary {
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1rem;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
    font-size: 0.94em;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: #fff;
    color: #293347;
    border-radius: 10px;
    border: 2px solid #ede8d7;
    width: 44px;
    height: 44px;
    transition: border-color 0.19s, background 0.18s;
    margin-left: 8px;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    border-color: #8C7056;
    background: #F7F7F0;
  }
}
/* Slide-in mobile menu overlay */
.mobile-menu {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(41,51,71,0.97);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.73,.02,.33,.98);
  pointer-events: none;
  opacity: 0;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 20px 6px 0;
  background: transparent;
  color: #ede8d7;
  font-size: 2.2rem;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #8C7056;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 24px 0 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 14px 0;
  letter-spacing: 0.01em;
  border-radius: 5px;
  transition: color 0.18s, background 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #BFA06E;
  background: rgba(252,232,186, 0.08);
}
@media (max-width: 768px) {
  .mobile-menu {
    display: flex;
  }
}

/* ================================================
   FLEX UTILITIES & COMMON SPACING
================================================ */
.flex-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
.flex-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================================================
   RESPONSIVE LAYOUTS (Mobile first)
================================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  h3 {
    font-size: 1.08rem;
  }
  .container {
    max-width: 100%;
    padding-left: 12px; padding-right: 12px;
  }
  .section, .hero {
    padding: 20px 6px;
    margin-bottom: 36px;
    border-radius: 0 0 18px 18px;
  }
  .content-wrapper {
    padding: 0;
    gap: 16px;
  }
  .card-container,
  .feature-grid,
  .content-grid,
  .article-preview-list {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 22px;
  }
  .testimonial-card, .feature-item, .article-preview {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin-bottom: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .footer-contact, .footer-menu, .footer-branding {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 14px 0 24px 0;
    border-radius: 0 0 8px 8px;
  }
  .section {
    padding: 12px 0;
    margin-bottom: 20px;
    border-radius: 0 0 8px 8px;
  }
}

/* ================================================
   TESTIMONIAL/BEWERTUNG SLIDER & SECTION
================================================ */
.testimonials .testimonial-slider,
.testimonials .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #293347;
  font-style: italic;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.testimonial-card span {
  font-size: 1em;
  color: #8C7056;
  font-family: 'Merriweather', Georgia, serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ================================================
   POLICY / THANK YOU / PLAIN TEXT PAGES
================================================ */
.policy, .thank-you {
  background: #fff;
  box-shadow: 0 2px 32px rgba(41,51,71,0.04);
  border-radius: 14px;
  padding: 38px 18px;
  margin-bottom: 58px;
}
.policy h1, .thank-you h1 {
  margin-bottom: 20px;
  color: #8C7056;
}
.policy h2 {
  margin-top: 26px;
  color: #293347;
}
.policy ul {
  margin-bottom: 18px;
  margin-top: 5px;
}
.policy ul li {
  margin-bottom: 10px;
  list-style: disc inside;
}

/* ================================================
   MAP SECTION
================================================ */
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #f7f7f0;
  border-radius: 10px;
  margin-top: 10px;
}
.map-placeholder img {
  width: 42px;
  height: 42px;
}

/* ================================================
   OFFICE HOURS (Kontakt)
================================================ */
.office-hours {
  margin-top: 12px;
  font-style: italic;
  font-size: .97em;
  color: #8C7056;
  font-family: 'Merriweather', Georgia, serif;
  letter-spacing: 0.01em;
}

/* ================================================
   GOLD ACCENTS, PREMIUM DETAILS
================================================ */
hr, .with-gold hr {
  border: none;
  height: 2px;
  margin: 32px 0;
  background: linear-gradient(90deg, #8c7056 0%, #BFA06E 100%);
  border-radius: 2px;
  opacity: .65;
}
::selection {
  background: #F2D89C;
  color: #293347;
}
/* Gold dot accent helper */
.gold-dot {
  height: 8px;
  width: 8px;
  background: #BFA06E;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

/* ================================================
   COOKIE BANNER & MODAL
================================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  background: #fff;
  color: #293347;
  box-shadow: 0 -2px 18px rgba(41, 51, 71, 0.11);
  border-top: 3px solid #BFA06E;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  transition: transform 0.5s cubic-bezier(.7,.3,.23,.99), opacity 0.13s;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 600px) {
  .cookie-banner {
    padding: 18px 6px 18px 6px;
    font-size: 0.97em;
  }
  .cookie-banner .cookie-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
}

.cookie-modal-backdrop {
  position: fixed;
  z-index: 13000;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(41,51,71,0.45);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #293347;
  border-radius: 18px;
  padding: 36px 24px 28px 24px;
  box-shadow: 0 8px 48px rgba(41,51,71,0.23);
  position: relative;
  min-width: 320px;
  max-width: 96vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 1;
}
.cookie-modal h3 {
  color: #8C7056;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0eee7;
  font-size: .97em;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .category-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #e2ddcf;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .category-toggle:checked {
  background: #8C7056;
}
.cookie-modal .category-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
}
.cookie-modal .category-toggle:checked:before {
  left: 18px;
}
.cookie-modal .toggle-desc {
  font-size: 0.93em;
  color: #999CAA;
  margin-left: 8px;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.6em;
  color: #8C7056;
  transition: color 0.18s;
  padding: 3px 7px;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #293347;
  background: #f4eee5;
  border-radius: 7px;
}

/* ================================================
   MISCELLANEOUS
================================================ */
.selection-criteria, .about, .team, .resources, .analysis-insights, .services, .contact, .cta, .map {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(41,51,71,0.055);
}
@media (max-width: 768px){
  .selection-criteria, .about, .team, .resources, .analysis-insights, .services, .contact, .cta, .map {
    padding: 16px 6px;
    margin-bottom: 28px;
    border-radius: 10px;
  }
}

/* List bullet modifications for polish */
ul li::marker {
  color: #8C7056;
}

/* content block for address */
.address-block {
  padding: 10px 0 10px 0;
  font-size: 1.04em;
  color: #293347;
}

/* Hide scroll on mobile menu open */
body.mobilemenu-open {
  overflow: hidden !important;
  height: 100vh;
}

/* ================================================
   ANIMATIONS & EFFECTS
================================================ */
a, .button-primary, .button-secondary, .button-tertiary {
  transition: background 0.19s, color 0.17s, border 0.19s, box-shadow 0.18s;
}
.section, .policy, .thank-you, .about, .team, .resources, .analysis-insights, .map, .cta {
  animation: fadeInSlight 1.05s ease 0.13s;
}
@keyframes fadeInSlight {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================
   CUSTOM FONTS
   (Google Fonts assumed loaded elsewhere)
================================================ */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  src: local('Merriweather'), url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
}

/* ========================================================
   END OF STYLESHEET
======================================================== */
