/* RentenKompass Gradient Modern CSS Theme */
/* CSS Reset & Base Styles ----------------------------------- */
html {
  box-sizing: border-box;
  font-size: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #F5F5F5 0%, #E8EEF8 100%);
  color: #212529;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
a {
  color: #214179;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: #93B33C;
}
ul, ol {
  margin: 0 0 20px 20px;
  padding: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #214179;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-top: 32px;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.125rem;
}
p, li, dt, dd {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #2C3551;
}
strong {
  color: #214179;
}
address {
  font-style: normal;
  margin-bottom: 16px;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
}

/* Layout Utility Classes & Sections ------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(44,65,121,0.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(44,65,121,0.06);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-width: 260px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(33,65,121,0.17);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F5F5;
  border-radius: 16px;
  box-shadow: 0 1.5px 12px rgba(33,65,121,0.09);
  font-size: 1.125rem;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, background 0.2s;
}
.testimonial-card p {
  color: #232429;
  margin-bottom: 0;
  font-size: 1.12rem;
}
.testimonial-card span {
  color: #214179;
  font-weight: 600;
  font-size: 1rem;
  margin-left: 6px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(33,65,121,0.18);
  background: #e8eef8;
}
.faq, .callout {
  background: #f5f5f5;
  border-left: 6px solid #93B33C;
  padding: 20px 20px 16px 24px;
  border-radius: 15px;
  margin: 20px 0 18px 0;
}
.faq h4 {
  margin-bottom: 8px;
}

/* Header & Navigation -------------------------------------- */
header {
  width: 100%;
  background: linear-gradient(90deg, #214179 75%, #93B33C 130%);
  padding: 0 0 0 0;
  box-shadow: 0 2px 16px rgba(33,65,121,0.07);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 32px;
  height: 86px;
  padding: 0 20px;
}
header img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 18px;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #93B33C;
  color: #1a2c53;
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  padding: 12px 32px;
  background: linear-gradient(93deg, #93B33C 0%, #A7C95B 100%);
  color: #214179;
  border: none;
  border-radius: 25px;
  box-shadow: 0 2px 9px rgba(147,179,60,0.07);
  transition: background 0.22s, box-shadow 0.22s, color 0.2s;
  cursor: pointer;
  margin-left: 18px;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(93deg, #7EA22E 0%, #93B33C 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(147,179,60,0.17);
}

/* Footer --------------------------------------------------- */
footer {
  width: 100%;
  background: linear-gradient(90deg, #214179 70%, #93B33C 120%);
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 24px 0px 12px 0px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #f5f5f5;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 2px 10px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #93B33C;
  color: #214179;
}
.copyright {
  font-size: 0.97rem;
  opacity: 0.8;
  margin-bottom: 2px;
}

/* Responsive Spacing for Cards/Sections --------------------- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 14px;
}
.features-grid > div {
  background: #F5F5F5;
  border-radius: 16px;
  flex: 1 1 270px;
  min-width: 220px;
  box-shadow: 0 1.5px 12px rgba(44,65,121,0.07);
  padding: 22px 16px 16px 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, background 0.21s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.features-grid > div img {
  width: 38px;
  height: 38px;
  margin-bottom: 5px;
}
.features-grid > div:hover {
  box-shadow: 0 5px 24px rgba(33,65,121,0.16);
  background: #e8eef8;
}

/* Callout Block Style -------------------------------------- */
.callout {
  font-size: 1.02rem;
  color: #214179;
  font-weight: 500;
  background: #e8eef8;
  border-left: 6px solid #214179;
  margin-top: 12px;
  margin-bottom: 20px;
}

/* Details/Summary ------------------------------------------ */
details {
  background: #e8eef8;
  border-radius: 9px;
  margin: 12px 0 18px 0;
  padding: 16px 18px 10px 14px;
}
details[open] summary {
  color: #93B33C;
}
summary {
  font-weight: 700;
  cursor: pointer;
  color: #214179;
  margin-bottom: 7px;
  outline: none;
}
details p {
  margin: 0 0 6px 0;
  color: #304057;
}

/* Additional Elements -------------------------------------- */
.text-section {
  margin-top: 16px;
}
.text-section p {
  margin-bottom: 8px;
  color: #2C3551;
}

/* Hamburger Menu (Mobile) ---------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: #214179;
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  padding: 5px 15px 5px 15px;
  cursor: pointer;
  margin-right: 16px;
  z-index: 51;
  box-shadow: 0 1.5px 10px rgba(33,65,121,0.13);
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #93B33C;
  color: #214179;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 290px;
  max-width: 83vw;
  background: #214179;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 200;
  box-shadow: -2px 0 24px rgba(33,65,121,0.19);
  transform: translateX(110%);
  transition: transform 0.37s cubic-bezier(0.42, 0, 0.48, 1);
  padding: 36px 24px 18px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 250;
  padding: 0 10px;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #93B33C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 44px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.19s;
  text-align: left;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #93B33C;
  color: #1a2c53;
}

/* Cookie Consent Banner + Preferences Modal ----------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 24px rgba(33,65,121,0.13);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  z-index: 400;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 24px 22px 24px;
  font-size: 1.08rem;
  animation: slideUpIn 0.39s cubic-bezier(0.48,0,0.42,1);
}
@keyframes slideUpIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner__text {
  color: #214179;
  max-width: 520px;
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.5;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 24px;
  margin: 0;
  cursor: pointer;
  transition: background 0.19s, color 0.17s, box-shadow 0.18s;
  box-shadow: 0 1.5px 9px rgba(44,65,121,0.05);
}
.cookie-btn.accept {
  background: linear-gradient(92deg, #93B33C 0%, #A7C95B 100%);
  color: #214179;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: linear-gradient(92deg, #7EA22E 9%, #93B33C 100%);
  color: #fff;
}
.cookie-btn.reject {
  background: #214179;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #1A2C53;
}
.cookie-btn.settings {
  background: #fff;
  color: #214179;
  border: 1.5px solid #214179;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e8eef8;
  color: #214179;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,65,121,0.15);
  z-index: 420;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: cookieFadeIn 0.28s ease;
}
@keyframes cookieFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 10px 46px rgba(33,65,121,0.19);
  padding: 38px 34px 32px 34px;
  width: 96vw;
  max-width: 430px;
  color: #214179;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: zoomModalOpen 0.23s cubic-bezier(0.56,0.03,0.36,1.01);
}
@keyframes zoomModalOpen {
  0% { transform: scale(0.84); }
  100% { transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 8px;
  color: #214179;
  font-weight: 700;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 0;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
  color: #214179;
}
.cookie-toggle {
  accent-color: #93B33C;
  width: 17px;
  height: 17px;
  margin-right: 4px;
}
.essential-notice {
  font-size: 0.92rem;
  font-style: italic;
  color: #93B33C;
  margin-top: 3px;
}
.cookie-modal .cookie-btn {
  align-self: flex-end;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 22px;
  background: none;
  border: none;
  color: #214179;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 7px;
  transition: color 0.2s, background 0.15s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  color: #93B33C;
  background: #e9f0da;
}

/* Forms & Buttons ------------------------------------------ */
input, button, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
button {
  outline: none;
  border: none;
  background: none;
  cursor: pointer;
}

/* Utilities ------------------------------------------------ */
.d-none {
  display: none !important;
}
.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-20 { gap: 20px; }

/* Typography Scale ----------------------------------------- */
@media (max-width: 1100px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.63rem; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.23rem; }
  .cta-btn {
    font-size: 1rem;
    padding: 10px 12px;
  }
}

/* Responsive ------------------------------------------------*/
@media (max-width: 1024px) {
  .container {
    max-width: 95vw;
  }
  .features-grid,
  .card-container {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 8px;
  }
}
@media (max-width: 800px) {
  .features-grid,
  .card-container {
    flex-direction: column;
  }
  .features-grid > div,
  .card {
    min-width: 75vw;
    flex: 1 1 100%;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
    border-radius: 14px;
  }
  header .container {
    flex-direction: row;
    gap: 6px;
    height: 68px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    display: none;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .card-container, .features-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .faq, .callout {
    padding: 12px 10px 8px 12px;
    border-radius: 8px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
  }
  .features-grid > div {
    padding: 12px 8px;
    border-radius: 9px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px 12px 12px;
    font-size: 0.97rem;
  }
  .cookie-banner__text {
    max-width: none;
  }
  .cookie-modal {
    padding: 26px 9px 20px 15px;
    max-width: 97vw;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 4px;
  }
  h1, h2, h3 { word-break: break-word; }
  .features-grid > div, .card  {
    padding: 8px 5px 8px 7px;
  }
  .section {
    padding: 12px 2px;
    margin-bottom: 19px;
  }
  .footer-nav { padding-left: 2px; }
  .cookie-banner {
    border-radius: 7px 7px 0 0;
    font-size: 0.92rem;
  }
  .cookie-modal {
    border-radius: 8px;
  }
}

/* Hide mobile menu overlay by default */
@media (max-width: 768px) {
  .mobile-menu {
    display: flex;
  }
}
