/* ----------------------------------------------------------
   Minimalist Brand CSS for Ruhestand Klar
   ----------------------------------------------------------*/

/* ============ CSS RESET ============ */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  line-height: 1.6;
  min-height: 100vh;
  background: #FFFFFF;
  color: #0B2B4E;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============ Brand Fonts ============ */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  src: local('Merriweather Bold'), local('Merriweather-Bold'), url(https://fonts.gstatic.com/s/merriweather/v21/u-4k0rCzjgs5J7oXnJcM_0k.woff2) format('woff2');
  unicode-range: U+000-5FF;
}
/* Google Fonts Import (fallbacks) if not locally available */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Merriweather:wght@700&display=swap');

/* ============ Utility Classes ============ */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: 0 2px 12px rgba(41, 84, 155, 0.07);
  border-radius: 12px;
  padding: 32px 24px;
  min-width: 250px;
  min-height: 140px;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(41, 84, 155, 0.13);
}

.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;
  background: #F8FAFC;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(41,84,155,0.06);
  flex-direction: column;
  text-align: left;
  color: #0B2B4E;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  padding: 24px 18px;
  box-shadow: 0 1px 6px rgba(41, 84, 155, 0.05);
  margin-bottom: 20px;
}

/* ================== HEADER & NAVIGATION ==================== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  padding-top: 12px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
header a img {
  height: 38px;
  width: auto;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: #0B2B4E;
  font-weight: 600;
  position: relative;
  text-decoration: none;
  font-size: 16px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.12s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #E5E7EB;
  outline: none;
}
.main-nav .cta.primary {
  margin-left: 12px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #29549B;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
  z-index: 1101;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #0B2B4E;
}

/* ============ MOBILE NAVIGATION ============ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(41,84,155,0.97);
  box-shadow: 0 6px 32px rgba(41,84,155,0.18);
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 18px 20px 8px 0;
  cursor: pointer;
  transition: color 0.22s;
  z-index: 1201;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #E5E7EB;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 30px 0 0 28px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.12s;
  border-radius: 5px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #E5E7EB;
  background: rgba(255,255,255,0.04);
  outline: none;
}

/* Hide main nav and show burger on mobile */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================== HERO & PAGE TITLES ==================== */
.hero, .about-hero, .services-hero, .process-hero, .contact-hero, .faq-hero, .thank-you {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 340px;
  background: #f5f7fa;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 2px 10px rgba(41,84,155,0.085);
  margin-bottom: 60px;
  padding-top: 48px;
}
.hero h1, .about-hero h1, .services-hero h1, .process-hero h1, .contact-hero h1, .faq-hero h1, .thank-you h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  color: #29549B;
  font-weight: 700;
  line-height: 1.22;
}
.hero p, .about-hero p, .services-hero p, .process-hero p, .contact-hero p, .faq-hero p, .thank-you p {
  font-size: 1.1rem;
  color: #0B2B4E;
  margin-top: 16px;
  margin-bottom: 4px;
}

/* ================= SECTIONS & TYPO ================== */
h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #0B2B4E;
  margin-bottom: 16px;
}
h3 {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.17rem;
  font-weight: 600;
  color: #29549B;
  margin-bottom: 10px;
}
h1, h2, h3, h4 {
  letter-spacing: -0.5px;
}
p, ul li, ol li {
  font-size: 1rem;
  color: #2B3B4F;
}

ul {
  margin-top: 6px;
  margin-bottom: 16px;
  padding-left: 24px;
}
ul li {
  position: relative;
  margin-bottom: 10px;
  line-height: 1.7;
}
ul li::before {
  content: '\2022';
  color: #29549B;
  font-weight: bold;
  display: inline-block;
  width: 1.1em;
  margin-left: -1.1em;
}
ol {
  padding-left: 26px;
  margin-bottom: 10px;
}
ol li {
  margin-bottom: 8px;
}

address {
  font-style: normal;
  color: #0B2B4E;
  margin-bottom: 10px;
  line-height: 1.7;
}
a {
  color: #29549B;
  text-decoration: underline;
  transition: color 0.1s;
}
a:hover {
  color: #0B2B4E;
}

/* ========== CTA BUTTONS ========== */
.cta {
  display: inline-block;
  border-radius: 7px;
  text-decoration: none;
  font-size: 1.10rem;
  font-weight: 700;
  letter-spacing: 0.1px;
  padding: 12px 28px;
  margin-top: 8px;
  box-shadow: 0 1px 10px rgba(41, 84, 155, 0.09);
  transition: box-shadow 0.13s, background 0.13s, color 0.12s;
  cursor: pointer;
}
.cta.primary {
  background: #29549B;
  color: #fff;
  border: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: #0B2B4E;
  box-shadow: 0 3px 16px rgba(41,84,155,0.13);
  outline: none;
}
.cta.secondary {
  background: #E5E7EB;
  color: #29549B;
  border: 1px solid #29549B;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #29549B;
  color: #fff;
  border-color: #29549B;
  outline: none;
}

/* =================== TESTIMONIALS ====================== */
.testimonials .testimonial-card {
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(11,43,78,0.09);
  background: #F8FAFC;
  color: #0B2B4E;
  max-width: 560px;
}
.testimonial-card .stars {
  color: #FFD642;
  font-size: 1.6rem;
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-family: inherit;
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.07rem;
  font-weight: 500;
  color: #153A66;
  margin: 0 0 8px 0;
}
.testimonial-card cite {
  color: #29549B;
  font-size: 1rem;
  font-style: normal;
  letter-spacing: 0.1px;
}

/* =================== FOOTER ===================== */
footer {
  width: 100%;
  background: #f4f6fa;
  border-top: 1px solid #E5E7EB;
  padding: 32px 0 24px 0;
  margin-top: 30px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
}
.footer-nav a {
  color: #29549B;
  font-size: 1rem;
  text-decoration: none;
  opacity: 0.82;
  transition: color 0.12s, opacity 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #0B2B4E;
  opacity: 1;
}
footer p {
  font-size: 0.97rem;
  color: #8597b1;
}

/* =================== FORMS ===================== */
input[type="search"],
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 1rem;
  color: #153A66;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  margin-bottom: 18px;
  outline: none;
  transition: border 0.13s, box-shadow 0.13s;
  font-family: 'Open Sans', Arial, sans-serif;
}
input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border: 1.5px solid #29549B;
  box-shadow: 0 2px 8px rgba(41, 84, 155, 0.09);
}

/* =================== TABLES ===================== */
table {
  width: 100%;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 6px rgba(41,84,155,0.07);
  margin-bottom: 20px;
  font-size: 1rem;
}
th, td {
  padding: 10px 18px;
  text-align: left;
}
th {
  background: #F3F5F9;
  font-weight: 700;
  color: #29549B;
}
tr:not(:last-child) td {
  border-bottom: 1px solid #E5E7EB;
}

/* ============== FEATURES SECTION (.features, .feature-grid) ============= */
.features {
  margin-bottom: 60px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 28px;
}
.feature-grid li {
  flex: 1 1 240px;
  min-width: 210px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 21px 24px 21px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 10px rgba(41, 84, 155, 0.05);
  transition: box-shadow 0.15s;
}
.feature-grid li:hover {
  box-shadow: 0 4px 15px rgba(41, 84, 155, 0.11);
}
.feature-grid li img {
  width: 36px;
  height: auto;
  margin-bottom: 8px;
}
.feature-grid li strong {
  font-size: 1.13rem;
  color: #29549B;
  font-weight: 700;
}

/* ===== ABOUT PREVIEW, PROCESS ===== */
.about-preview .text-section,
.about-details .text-section,
.team .text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.process-steps .step-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 22px 0 20px 0;
}
.process-steps .timeline {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: flex-start;
  color: #8597b1;
  font-size: 1.04rem;
}

/* FAQ accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 14px;
}
.faq-accordion > div {
  background: #F5F7FA;
  border-radius: 9px;
  padding: 18px 22px 14px 20px;
  box-shadow: 0 1px 6px rgba(41, 84, 155, 0.03);
  transition: box-shadow 0.13s;
}
.faq-accordion > div:hover {
  box-shadow: 0 4px 12px rgba(41, 84, 155, 0.09);
}
.faq-accordion h3 {
  margin-top: 0;
  margin-bottom: 7px;
  font-size: 1.10rem;
  color: #29549B;
  font-weight: 600;
}
.faq-accordion p {
  margin-bottom: 0;
  color: #2B3B4F;
}

/* Legal Section */
.legal {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 1px 8px rgba(41,84,155,0.04);
  padding: 40px 28px;
  margin-bottom: 48px;
}
.legal h1 {
  font-size: 2rem;
  color: #29549B;
  font-family: 'Merriweather', serif;
}
.legal h2 {
  font-size: 1.3rem;
  color: #153A66;
}
.legal ul {
  padding-left: 22px;
}

/* Services list */
.services-list ul {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}
.services-list ul li {
  background: #fff;
  border-radius: 13px;
  padding: 22px 24px 18px 20px;
  box-shadow: 0 1px 10px rgba(41, 84, 155, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  margin-bottom: 0;
}
.services-list h3 {
  color: #0B2B4E;
  font-size: 1.17rem;
  margin-bottom: 2px;
}
.services-list .price {
  font-weight: 700;
  color: #29549B;
  font-size: 1.11rem;
  margin-bottom: 8px;
}
.services-list a {
  display: inline-block;
  color: #29549B;
  text-decoration: underline;
  margin-top: 7px;
  font-size: 1rem;
  transition: color 0.13s;
}
.services-list a:hover {
  color: #0B2B4E;
}

/* Service Benefits */
.service-benefits ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}
.service-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 1.01rem;
  color: #0B2B4E;
}
.service-benefits li img {
  width: 24px;
  height: 24px;
}

/* =============== Cookie Consent Banner & Modal =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #0B2B4E;
  box-shadow: 0 -3px 18px rgba(41, 84, 155, 0.13);
  z-index: 2333;
  padding: 20px 32px 20px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border: none;
  border-radius: 6px;
  padding: 9px 21px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: #E5E7EB;
  color: #29549B;
  transition: background 0.11s, color 0.11s;
}
.cookie-banner .accept {
  background: #29549B;
  color: #fff;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #0B2B4E;
  outline: none;
}
.cookie-banner .reject {
  background: #e8eaf5;
  color: #29549B;
}
.cookie-banner .settings {
  background: #fff;
  color: #29549B;
  border: 1.5px solid #29549B;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #29549B;
  color: #fff;
  outline: none;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3000;
  inset: 0;
  background: rgba(41,84,155,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.21s;
  opacity: 1;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 32px rgba(41,84,155,0.18);
  max-width: 430px;
  width: 98vw;
  padding: 36px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #0B2B4E;
  position: relative;
  animation: cookieModalFadein 0.28s;
}
@keyframes cookieModalFadein {
  from {opacity:0;transform:scale(0.97);} to {opacity: 1;transform:scale(1);}
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 19px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #29549B;
  cursor: pointer;
  transition: color 0.12s;
}
.cookie-modal .cookie-modal-close:hover {
  color: #0B2B4E;
}
.cookie-modal h2 {
  font-size: 1.24rem;
  color: #29549B;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px 10px 0;
}
.cookie-category label {
  font-size: 1rem;
  color: #0B2B4E;
  font-weight: 600;
  user-select: none;
}
.cookie-category input[type="checkbox"] {
  accent-color: #29549B;
  width: 19px;
  height: 19px;
  margin-right: 6px;
}
.cookie-category.essential label {
  color: #153A66;
}
.cookie-category.essential input {
  pointer-events: none;
  opacity: 0.52;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.cookie-modal .cookie-modal-actions button {
  border-radius: 6px;
  padding: 7px 14px;
  border: none;
  background: #29549B;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.12s;
}
.cookie-modal .cookie-modal-actions button.secondary {
  background: #E5E7EB;
  color: #29549B;
}
.cookie-modal .cookie-modal-actions button.secondary:hover {
  background: #29549B;
  color: #fff;
}

/* =================== RESPONSIVE ===================== */
@media (max-width: 1220px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 980px) {
  .feature-grid { gap: 16px; }
  .feature-grid li { min-width: 140px; padding: 16px 10px; }
}
@media (max-width: 900px) {
  .feature-grid { gap: 12px; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section, .legal {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .feature-grid {
    gap: 16px;
    flex-direction: column;
  }
  .content-grid, .card-container, .service-benefits ul {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .testimonials .testimonial-card {
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
  .main-nav {
    display: none;
  }
  .hero, .about-hero, .services-hero, .process-hero, .contact-hero, .faq-hero, .thank-you {
    min-height: 210px;
    padding-top: 26px;
    border-radius: 0 0 12px 12px;
  }
  .footer-nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .legal {
    padding: 20px 6px;
    border-radius: 8px;
  }
  .faq-accordion > div {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 1rem;
  }
  .services-list ul,
  .feature-grid, .service-benefits ul {
    gap: 14px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 18px 10px;
  }
}
@media (max-width: 500px) {
  .hero h1, .about-hero h1, .services-hero h1, .process-hero h1, .contact-hero h1, .faq-hero h1, .thank-you h1 {
    font-size: 1.41rem;
  }
  h2 { font-size: 1.09rem; }
}

/* =================== SPACING QUICK-UTILITIES ===================== */
.pt-0 { padding-top: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-16 { margin-top: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.gap-20 { gap: 20px !important; }

/* =================== MICRO-INTERACTIONS ===================== */
.button, .cta, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.13s, color 0.13s, box-shadow 0.13s, transform 0.09s;
}
.button:active, .cta:active, .mobile-menu-toggle:active, .mobile-menu-close:active {
  transform: scale(0.98);
}

/* =================== PRINT ================ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  .container { max-width: 100vw; padding: 0; }
}
