/* RaumGlück CSS – creative_artistic, vibrant, modern, flexbox-based, responsive */

/* RESET & BASELINE */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
}
body {
  background-color: #F2F6F9;
  color: #31506C;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: #31506C;
  text-decoration: none;
  transition: color .2s;
}
strong, b {
  font-weight: 700;
}
blockquote {
  border-left: 5px solid #C7A87F;
  background: #fffbe0;
  color: #31506C;
  margin: 24px 0;
  padding: 16px 24px;
  font-style: italic;
}

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #31506C;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
}
h1 { font-size: 2.375rem; margin-bottom: 24px; }
h2 { font-size: 1.75rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 700; }

p, ul li, ol li, span, label, input, textarea, button {
  font-family: 'Roboto', Arial, sans-serif;
}
p, ul li, ol li {
  font-size: 1rem;
  margin-bottom: 12px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 32px rgba(49,80,108, 0.07), 0 0.5px 2px rgba(83, 53, 103, 0.05);
  position: relative;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
}
.text-section {
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  border-bottom: 3px solid #C7A87F;
  position: sticky;
  top: 0;
  z-index: 99;
  width: 100%;
  box-shadow: 0 1px 16px rgba(49,80,108,0.04);
}
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 16px 0;
  max-width: 1140px;
  margin: 0 auto;
  justify-content: space-between;
}
header nav > a img {
  height: 42px;
  width: auto;
  margin-right: 24px;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
header nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #31506C;
  font-size: 1rem;
  padding: 7px 16px;
  border-radius: 9px;
  transition: background .2s, color .2s;
}
header nav ul li a:hover,
header nav ul li a:focus {
  background: #C7A87F;
  color: #fff !important;
}
header nav .cta-btn {
  margin-left: 16px;
}

/* CTA BUTTONS */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: #31506C;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .5px;
  font-size: 1.075rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(49,80,108,0.16);
  border: 2px solid #C7A87F;
  cursor: pointer;
  outline: none;
  transition: background .2s, transform .11s, box-shadow .15s;
  margin: 16px 0 0 0;
}
.cta-btn:hover, .cta-btn:focus {
  background: #C7A87F;
  color: #31506C !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px rgba(49,80,108,0.12);
  border-color: #31506C;
}

/* FLEX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(49,80,108,0.09);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .19s, transform .19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(49,80,108,0.17);
  transform: translateY(-3px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px 18px;
}
.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;
  border-radius: 20px;
  background: #fff;
  border-left: 7px solid #C7A87F;
  box-shadow: 0 3px 16px rgba(49,80,108,0.07);
  min-width: 0;
  transition: box-shadow .16s, border-color .19s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 32px rgba(49,80,108,0.10);
  border-color: #31506C;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #E9EDF0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

/* Artistic/Unique Details - Vibrancy */
.section::before {
  content: '';
  display: block;
  position: absolute;
  top: -36px;
  left: -36px;
  width: 96px;
  height: 96px;
  background: rgba(199,168,127,0.08);
  border-radius: 40% 65% 60% 100%/100% 85% 65% 80%;
  z-index: 0;
  pointer-events: none;
}
.section:nth-child(even)::before {
  background: rgba(49,80,108,0.08);
  left: auto;
  right: -36px;
  top: -28px;
}
.section > * {
  position: relative;
  z-index: 2;
}

/* ICONS in Features */
.content-wrapper ul li img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  vertical-align: middle;
  display: inline-block;
}

/* LINK BUTTONS */
.mobile-nav a {
  padding: 14px 0;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #31506C;
  border-bottom: 1px solid #E9EDF0;
  transition: background .14s, color .15s;
  display: block;
  border-radius: 10px;
  margin-bottom: 8px;
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 32px;
  top: 18px;
  padding: 8px 14px;
  background: #31506C;
  color: #fff;
  font-size: 2rem;
  border-radius: 10px;
  cursor: pointer;
  z-index: 201;
  border: 2px solid #C7A87F;
  box-shadow: 0 2px 8px rgba(49,80,108,.06);
  transition: background .13s, color .13s;
}
.mobile-menu-toggle:active {
  background: #C7A87F;
  color: #31506C;
}
.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;
  box-shadow: 0 3px 32px 7px rgba(49,80,108,0.16);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform .45s cubic-bezier(.87,.02,.19,1.01);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  right: 32px;
  top: 22px;
  font-size: 2rem;
  background: #fff;
  color: #31506C;
  border: 2px solid #C7A87F;
  border-radius: 9px;
  padding: 4px 14px;
  cursor: pointer;
  transition: color .19s, background .11s;
  z-index: 207;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #C7A87F;
  color: #fff;
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 72px;
  width: 100%;
  padding: 24px 32px;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 1020px) {
  header nav ul, header nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* FOOTER */
footer {
  background: #31506C;
  color: #fff;
  padding: 38px 0 24px 0;
  border-radius: 32px 32px 0 0;
  margin-top: 80px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
footer nav a {
  color: #C7A87F;
  font-weight: 700;
  transition: color .16s;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer nav a:hover,
footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  font-size: 1rem;
  text-align: center;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.footer-contact a {
  color: #fff;
  text-decoration: underline;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 768px) {
  .container {
    max-width: 97vw;
    padding: 0 8px;
  }
  .section {
    padding: 24px 6px;
    margin-bottom: 36px;
    border-radius: 16px;
  }
  .content-wrapper, .text-section {
    gap: 14px !important;
  }
  .testimonial-card {
    padding: 12px;
    gap: 10px;
    font-size: .98rem;
    border-radius: 11px;
  }
  .feature-item {
    padding: 12px 7px;
    border-radius: 7px;
  }
  .card {
    border-radius: 12px;
  }
  .card-content {
    padding: 13px 9px;
  }
  .card-container,
  .content-grid {
    gap: 11px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 17px;
  }
  h1 { font-size: 1.57rem; }
  h2 { font-size: 1.16rem; }
}

/* Typography hierarchy */
h1 { font-size: 2.375rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
@media (max-width: 480px){
  h1{ font-size: 1.2rem; }
  h2{ font-size: 1.01rem; }
}

/* FAQ, Text Section Lists for Services/Ratgeber */
.text-section ul, .content-wrapper ul, .content-wrapper ol {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 10px 0 10px 0;
  padding-left: 2px;
}
.text-section ul li, .content-wrapper ul li, .content-wrapper ol li {
  position: relative;
  padding-left: 26px;
  font-size: 1.03rem;
  color: #31506C;
}
.text-section ul li::before, .content-wrapper ul li::before {
  content: '\2022';
  color: #C7A87F;
  font-weight: bold;
  position: absolute;
  left: 0;
}
.content-wrapper ol {
  counter-reset: item;
}
.content-wrapper ol li {
  padding-left: 0;
}
.content-wrapper ol li::before {
  counter-increment: item;
  content: counter(item) ". ";
  color: #C7A87F;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ACCENTUATE Headings with Artistic underline */
h2 {
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: #C7A87F;
  margin: 7px 0 0 0;
}

/* Input Fields, Forms, Cookie banner will inherit restyle where present */
input, textarea, select {
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid #E9EDF0;
  background: #fff;
  padding: 11px 15px;
  margin-bottom: 14px;
  outline: none;
  transition: border .14s, box-shadow .13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #C7A87F;
  box-shadow: 0 2px 12px rgba(49,80,108,0.09);
}

button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 11px 21px;
  border-radius: 12px;
  cursor: pointer;
  background: #C7A87F;
  color: #fff;
  border: none;
  margin: 6px 8px 6px 0;
  font-weight: 700;
  transition: background .17s, color .13s;
  outline: none;
}
button:hover,.btn:hover,button:focus,.btn:focus {
  background: #31506C;
  color: #fff;
}

/* TESTIMONIALS – ensure legibility */
.testimonial-card {
  background: #fff; /* Force light bg for contrast */
  color: #31506C;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: .97rem;
  color: #C7A87F;
  margin-left: 8px;
  letter-spacing: .2px;
}
.testimonial-card p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.03rem;
  color: #31506C;
}

/* Cookie Consent Banner */
.cookie-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: #31506C;
  color: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -4px 32px rgba(49,80,108,0.12);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  padding: 30px 26px;
  z-index: 3000;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform .5s cubic-bezier(.68,-0.55,.27,1.55), opacity .22s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner-message {
  font-size: 1rem;
  max-width: 580px;
  flex: 1 1 auto;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: 2px solid #C7A87F;
  background: #fff;
  color: #31506C;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 700;
  margin-right: 2px;
  transition: background .18s, color .13s;
  cursor: pointer;
}
.cookie-btn.primary {
  background: #C7A87F;
  color: #fff;
  border-color: #C7A87F;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #C7A87F;
  color: #fff;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    padding: 18px 8px;
    border-radius: 14px 14px 0 0;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 94vw;
  max-width: 440px;
  padding: 36px 24px 24px 24px;
  background: #fff;
  color: #31506C;
  border-radius: 24px;
  box-shadow: 0 6px 44px rgba(49,80,108,0.22);
  z-index: 3100;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: opacity .29s, transform .3s cubic-bezier(.68,-0.55,.27,1.55);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-30%) scale(.7);
}
.cookie-modal h2 {
  font-size: 1.45rem;
  color: #31506C;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.02rem;
  padding: 13px 0;
  border-bottom: 1px solid #E9EDF0;
}
.cookie-category.toggled label {
  color: #C7A87F;
}
.cookie-switch {
  width: 38px;
  height: 22px;
  border-radius: 14px;
  background: #E9EDF0;
  position: relative;
  cursor: pointer;
  border: 1.5px solid #C7A87F;
  transition: background .16s;
  margin-left: 14px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  background: #C7A87F;
  border-radius: 50%;
  transition: left .17s, background .17s;
}
.cookie-switch input:checked + .knob {
  left: 18px;
  background: #31506C;
}

.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 15px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #F2F6F9;
  color: #31506C;
  border: none;
  font-size: 1.3rem;
  border-radius: 50%;
  padding: 5px 13px;
  cursor: pointer;
  transition: background .17s, color .14s;
  z-index: 3199;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #C7A87F;
  color: #fff;
}

/* Artistic Decorative Element: accent dots on brand */
.section .decorative-dot {
  position: absolute;
  top: -22px;
  right: 44px;
  width: 33px;
  height: 33px;
  background: #C7A87F;
  border-radius: 50%;
  opacity: 0.16;
  pointer-events: none;
}
.section .decorative-dot.secondary {
  background: #31506C;
  right: 92px;
  opacity: .10;
  top: -17px;
}

/* Subtle Animations */
.section, .card, .testimonial-card, .cta-btn, .card-content, .feature-item {
  transition: box-shadow .22s, transform .17s, background .14s;
}
.cta-btn, .cookie-btn, button, .btn {
  transition: background .17s, color .13s, transform .13s;
}

/* Hyperlinks - creative artistic underline and hover */
a {
  position: relative;
  transition: color .17s;
}
a[href]:after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1.6px;
  background: #C7A87F;
  transform: scaleX(0.14);
  transition: transform .29s cubic-bezier(.87,.02,.19,1.01); opacity: .56;
  border-radius: 2px;
  z-index: 1;
}
a[href]:hover:after, a[href]:focus:after {
  transform: scaleX(1);
}
a[href]:hover, a[href]:focus {
  color: #C7A87F;
}

/* Misc. Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Artistic font touches (where appropriate) */
h1, .cta-btn, .mobile-nav a, .cookie-btn, .btn, .footer-contact {
  letter-spacing: .75px;
}

/* Hide scroll on mobile menu when open */
body.mobile-menu-open {
  overflow: hidden !important;
}

/* For larger screen art layout tweaks */
@media (min-width: 1021px) {
  .content-grid, .card-container {
    flex-direction: row;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }
}

/* Ensure minimum spacing everywhere */
.section, .card-container, .card, .content-wrapper, .content-grid, .feature-item, .testimonial-card {
  margin-bottom: 20px;
}

/* Prevent overlapping content */
.section, .container, .card-container, .card, .content-grid, .content-wrapper {
  min-width: 0;
  box-sizing: border-box;
}

/* END RaumGlück creative_artistic flexbox CSS */
