/* PensionExpert Leipzig - Warm Friendly CSS Stylesheet */
/* =====================================================
   1. CSS RESET + NORMALIZE
   2. Variables (with fallbacks)
   3. Typography
   4. Layout Containers (Flexbox-only)
   5. Header & Nav (Desktop & Mobile)
   6. Buttons, Links & Micro-interactions
   7. Cards, Sections, Tables
   8. Lists, Stepper, Accordion (FAQ)
   9. Testimonials, Ratings
   10. Footer
   11. Cookie Consent Banner & Modal
   12. Utility/Responsive Media Queries
======================================================= */

/* 1. RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  background: #FFF;
  color: #263238;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: 10px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #174A6E;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.25rem; margin-bottom: 20px; }
h2 { font-size: 1.7rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
p, ul, ol { font-size: 1rem; margin-bottom: 1.1em; }
a { color: #23885D; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #174A6E; }
strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* 2. BRAND VARIABLES (with fallbacks) */
:root {
  --brand-primary: #174A6E;
  --brand-secondary: #FFF7F0;
  --brand-accent: #23885D;
  --brand-warm1: #FFF7F0;
  --brand-warm2: #FFE2C6;
  --brand-dark: #174A6E;
  --brand-light: #FFFFFF;
  --brand-card: #FDF7F0;
  --shadow-soft: 0 2px 14px 0 rgba(44,62,80,0.08);
  --shadow-hover: 0 4px 20px 0 rgba(44,62,80,0.14);
  --radius: 18px;
  --radius-btn: 999px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* 3. TYPOGRAPHY: Scale & Friendly */
body {
  font-family: var(--font-body, 'Roboto', Arial, sans-serif);
  color: #263238;
  background: var(--brand-secondary, #FFF7F0);
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-card, #FDF7F0);
  border-radius: var(--radius, 18px);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section { gap: 20px; }

/* 4. FLEXBOX PATTERNS (MANDATORY ALIGNMENTS) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--brand-card, #FEFAF5);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.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: center;
  gap: 20px;
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px 32px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  background: var(--brand-warm2, #FFE2C6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  flex: 1 1 280px;
  min-width: 250px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.025);
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.service-card {
  flex: 1 1 250px;
  min-width: 220px;
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.03);
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
}

.contact-summary, .contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
  font-size: 1.07rem;
}
.contact-summary img, .contact-info img, .footer-contact img {
  width: 22px;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
}

.location-map, .interactive-map {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-message {
  background: var(--brand-warm2, #FFE2C6);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
  text-align: center;
}
.next-steps ul {
  list-style: disc inside;
  margin-bottom: 8px;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.category-filter span {
  font-weight: 600;
  color: var(--brand-dark);
}
.category-filter a {
  font-size: 1rem;
  color: var(--brand-accent);
  background: var(--brand-warm2);
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  transition: background 0.2s, color 0.2s;
}
.category-filter a:hover {
  color: #fff;
  background: var(--brand-accent);
}
.article-overview {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.article-overview article {
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px 20px 18px 20px;
}

/* 5. HEADER & NAVIGATION */
header {
  background: var(--brand-primary);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(23,74,110,0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
}
header img[alt="PensionExpert Leipzig"] {
  height: 46px;
  border-radius: 0;
  margin-right: 32px;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  padding: 7px 16px;
  border-radius: var(--radius-btn);
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
  letter-spacing: 0.01em;
}
nav a:hover, nav a:focus {
  background: rgba(255, 255, 255, 0.13);
  color: var(--brand-accent);
  outline: none;
}
.cta-btn {
  font-family: var(--font-display);
  color: #fff;
  background: var(--brand-accent);
  border-radius: var(--radius-btn);
  padding: 12px 32px;
  font-weight: 700;
  font-size: 1.06rem;
  box-shadow: 0 2px 10px #36b37e20;
  margin-left: 18px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #174A6E;
  color: #fff;
  box-shadow: var(--shadow-hover);
  transform: scale(1.035);
}

/* Mobile Header/Burger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #fff;
  margin-left: 16px;
  cursor: pointer;
  border-radius: var(--radius-btn);
  height: 44px;
  width: 44px;
  transition: background 0.12s;
  z-index: 110;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--brand-accent);
  background: rgba(255,232,188,0.14);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 200;
  box-shadow: 0 2px 22px 0 rgba(23,74,110,0.23);
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(0.67,0.13,0.32,0.86);
  overflow-y: auto;
  padding-top: 32px;
  padding-left: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--brand-accent);
  position: absolute;
  top: 16px;
  right: 24px;
  cursor: pointer;
  z-index: 210;
  border-radius: var(--radius-btn);
  padding: 6px 12px;
  transition: background 0.1s;
}
.mobile-menu-close:focus {
  background: #eee;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 30px;
  gap: 12px;
}
.mobile-nav a {
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: 1.22rem;
  padding: 18px 28px 18px 38px;
  border-radius: 0 44px 44px 0;
  background: none;
  transition: background 0.19s, color 0.17s;
  font-weight: 500;
  border-left: 4px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFF7F0;
  color: var(--brand-accent);
  border-left: 4px solid var(--brand-accent);
}

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

/* 6. BUTTONS & MICRO-INTERACTIONS */
button, input[type="submit"], .btn {
  font-family: var(--font-display);
  padding: 11px 26px;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  border: none;
  background: var(--brand-accent);
  color: #fff;
  transition: background 0.17s, box-shadow 0.18s, transform 0.15s;
  cursor: pointer;
}
button:hover, .btn:hover, input[type="submit"]:hover,
button:focus, .btn:focus, input[type="submit"]:focus {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow-hover);
  outline: none;
  transform: scale(1.045);
}

/* 7. TABLES (Pricing) */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 17px 18px;
  font-size: 1.05rem;
  border-bottom: 1px solid #F5E3D2;
}
.pricing-table th {
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* 8. SERVICE & FAQ */
.service-list, .service-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1rem;
  margin-bottom: 12px;
}
.service-list li, .service-benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 36px;
}
.service-list img {
  width: 28px;
  margin-right: 8px;
  margin-top: 2px;
}
.service-benefit-list li:before {
  content: '\2713 ';
  color: var(--brand-accent);
  font-weight: 700;
  margin-right: 10px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px 16px 22px;
  transition: box-shadow 0.18s;
}
.faq-item:hover {
  box-shadow: var(--shadow-hover);
}
.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--brand-accent);
}
.faq-item p {
  margin-bottom: 0;
}

.stepper-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step;
  list-style: none;
  font-size: 1.05rem;
}
.stepper-timeline li {
  position: relative;
  padding-left: 44px;
  min-height: 44px;
}
.stepper-timeline li:before {
  content: counter(step);
  counter-increment: step;
  width: 34px;
  height: 34px;
  background: var(--brand-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  position: absolute;
  left: 0;
  top: 2px;
  box-shadow: 0 1px 4px #174A6E14;
}

/* 9. TESTIMONIALS & RATINGS */
.stars-rating {
  display: flex;
  align-items: center;
  gap: 3px;
}
.stars-rating img {
  width: 21px;
}
.testimonial-meta {
  font-size: 1rem;
  font-family: var(--font-display);
  color: #a45116;
  margin-top: -11px;
  margin-bottom: 0px;
  letter-spacing: 0.01em;
  font-weight: 500;
}

/* 10. FOOTER */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 44px 0 38px 0;
  font-size: 1rem;
  box-shadow: 0 -2px 8px rgba(44,62,80,0.06);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  justify-content: center;
  margin-bottom: 6px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.87;
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-btn);
  transition: background 0.14s, color 0.14s;
  padding: 7px 12px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-accent);
  background: #fff1e2;
  outline: none;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
}
.footer-logo img {
  width: 60px;
  margin-top: 10px;
  border-radius: var(--radius);
}

/* 11. COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFF7F0;
  color: #174A6E;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 -2px 16px 0 rgba(23,74,110,0.13);
  padding: 20px 34px 16px 34px;
  z-index: 3000;
  font-size: 1.06rem;
  animation: bannerin 0.33s cubic-bezier(0.6, 0.2, 0.3, 1.0);
  border-radius: 20px 20px 0 0;
}
@keyframes bannerin {
  from { transform: translateY(70px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  margin-left: 10px;
}
.cookie-banner .cookie-btn {
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: var(--radius-btn);
  background: var(--brand-accent);
  padding: 10px 21px;
  font-size: 1rem;
  border: 0;
  margin-right: 4px;
  margin-bottom: 3px;
  cursor: pointer;
  box-shadow: 0 2px 10px #36b37e14;
  transition: background 0.18s, box-shadow 0.19s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow-hover);
}
.cookie-banner .cookie-btn.reject {
  background: #e57357;
  color: #fff;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #b5381c;
}
.cookie-banner .cookie-btn.settings {
  background: transparent;
  color: var(--brand-accent);
  font-weight: 600;
  border: 1px solid var(--brand-accent);
  box-shadow: none;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #fff1e2;
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* COOKIES MODAL */
.cookie-modal {
  position: fixed;
  z-index: 4000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23, 74, 110, 0.17);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: modalfadein 0.25s;
}
@keyframes modalfadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 38px #174A6E29;
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 94vw;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-modal-content h2 {
  color: var(--brand-accent);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 12px;
}
.cookie-modal-category label {
  font-weight: 600;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: var(--brand-accent);
  width: 22px;
  height: 22px;
  border-radius: 8px;
  vertical-align: middle;
  margin-right: 6px;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 22px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--brand-accent);
  font-size: 2rem;
  position: absolute;
  top: 22px;
  right: 32px;
  cursor: pointer;
  border-radius: 44px;
  padding: 8px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--brand-dark);
}

/* 12. UTILITY/MOBILE RESPONSIVE */
@media (max-width: 768px) {
  html { font-size: 15.03px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.06rem; }
  .container {
    max-width: 100vw;
    padding: 0 5vw;
  }
  .section {
    margin-bottom: 38px;
    padding: 22px 7vw;
  }
  .content-wrapper, .content-grid, .service-cards, .feature-grid {
    flex-direction: column !important;
    gap: 22px !important;
  }
  .card, .service-card, .feature {
    min-width: 0;
    width: 100%;
    margin-bottom: 14px;
  }
  .testimonial-card {
    padding: 18px 12px;
    margin-bottom: 14px;
  }
  .partner-logos {
    gap: 12px;
    margin-top: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .footer-logo img {
    width: 36px;
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 19px 6vw 16px 6vw;
    border-radius: 12px 12px 0 0;
  }
  .cookie-modal-content {
    min-width: 0;
    padding: 21px 7vw 18px 7vw;
  }
}

/* GENERAL UTILITIES */
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
  font-size: 1rem;
}
ul li, ol li { margin-bottom: 6px; }
.text-section ul, .text-section ol {
  padding-left: 24px;
}
.no-hidden-fees {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-top: 6px;
  color: var(--brand-dark);
}

/* Qualification Badges */
.qualifications {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FFF7E4;
  border-radius: var(--radius);
  padding: 13px 19px;
  margin: 14px 0 0 0;
  font-size: 1rem;
  color: #bb8622;
  box-shadow: 0 2px 7px #fae3b220;
}
.qualifications img {
  width: 22px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

/* Accessibility Focus Styles */
a:focus, .cta-btn:focus, .btn:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* Hide visually [for scripts to use if needed] */
.visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* END */