/* ==========================================================
  FranzRente Scandinavian Clean CSS (Mobile-First)
  Strictly Flexbox | No Grid/Columns | Brand & Accessibility Compliant
============================================================ */
/* ==== Normalize & Reset ==== */
html { box-sizing: border-box; font-size: 100%; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; border: 0; }
body { font-family: 'Open Sans', Arial, sans-serif; background: #f9f6f2; color: #222; line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; min-height:100vh; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; height: auto; }
a { color: #244a73; text-decoration: none; transition: color 0.2s; word-break:break-word; }
a:hover, a:focus { color: #6bb57a; }
h1, h2, h3, h4, h5, h6 { font-family: 'Roboto Slab', serif; color: #244a73; line-height: 1.15; }
h1 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; margin-top: 0; }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 16px; margin-top: 0; }
h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 10px; margin-top: 0; }
h4, h5, h6 { font-weight: 500; }
p, ul, ol, li { font-size: 1rem; }
strong { font-weight: 600; color: #244a73; }
ul, ol { margin-bottom: 24px; padding-left: 20px; }
li { margin-bottom: 10px; }
main { flex: 1 1 auto; }
hr { border: none; border-bottom: 1px solid #e0e2e1; margin: 32px 0; }

/* ==== Container Utility ==== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(36,74,115,0.04), 0 0.5px 1.5px 0 rgba(36,74,115,0.04);
}

/* ==== Header / Navigation ==== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(36,74,115,0.07);
  padding: 0 0 0 0;
  position: relative;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap:0;
}
.header-brand {
  padding: 14px 20px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.header-brand img {
  width: 128px;
  height: auto;
}
.main-nav {
  display: none;
}
header .btn-primary {
  margin: 10px 20px 10px auto;
  display: none;
}
.mobile-menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  color: #244a73;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-left: auto;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #6bb57a;
  outline: none;
}

/* ==== Mobile Menu Overlay ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,74,115,0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 9999;
  padding: 20px 0 0 0;
  transform: translateX(-110%);
  transition: transform 0.36s cubic-bezier(.45,.12,.46,1.12);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 12px 20px 8px 16px;
  margin-left: 0;
  cursor: pointer;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #6bb57a; outline: none; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.23rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  padding: 14px 0;
  transition: color 0.2s, background 0.2s;
  border-radius: 10px;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus { color: #6bb57a; background: #23395a; outline: none; }

@media (min-width: 1024px) {
  header {
    flex-direction: row;
    align-items: center;
    min-height: 70px;
    padding: 0 0 0 0;
    gap:0;
  }
  .header-brand { padding: 0 32px 0 32px; }
  .main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
    flex: 1;
    margin-left: 24px;
    font-family: 'Roboto Slab', serif;
  }
  .main-nav a {
    color: #244a73;
    font-size: 1.08rem;
    padding: 12px 0;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.17s, background .2s;
  }
  .main-nav a:hover, .main-nav a:focus {
    background: #f1f3f6;
    color: #6bb57a;
  }
  header .btn-primary {
    display: inline-flex;
    font-size: 1rem;
    margin: 0 32px 0 20px;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ==== Buttons ==== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  border: none;
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s, color 0.22s, transform 0.14s, box-shadow .19s;
  min-width: 150px;
  justify-content: center;
  font-size: 1.08rem;
  padding: 13px 28px;
  margin-top: 8px;
  margin-bottom: 8px;
}
.btn-primary {
  background: #244a73;
  color: #f9f6f2;
  box-shadow: 0 1px 6px 0 rgba(36,74,115,0.08);
}
.btn-primary:hover, .btn-primary:focus {
  background: #6bb57a;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 20px 0 rgba(36,74,115,0.11);
  outline: none;
}
.btn-secondary {
  background: #f9f6f2;
  color: #244a73;
  border: 1.5px solid #244a73;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #244a73;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* ==== Hero Section ==== */
.hero {
  background: linear-gradient(94deg, #f9f6f2 74%, #eaf6ea 100%);
  padding-top: 36px;
  padding-bottom: 36px;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.hero .content-wrapper {
  max-width: 670px;
  align-items: flex-start;
  gap: 15px;
}
.hero h1 {
  font-size: 2rem;
  color: #244a73;
  font-family: 'Roboto Slab', serif;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.13rem;
  color: #39668f;
}

@media (min-width: 600px) {
  .hero .container {
    align-items: flex-start;
  }
  .hero h1 { font-size: 2.4rem; }
}
@media (min-width: 900px) {
  .hero {
    padding-top: 64px;
    padding-bottom: 70px;
  }
  .hero h1 {
    font-size: 2.9rem;
  }
}

/* ==== Features Grid ==== */
.features-grid, .process-grid, .team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div, .process-grid > div, .team-profiles > div {
  background: #f9f6f2;
  border-radius: 14px;
  padding: 24px 20px 20px 20px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  box-shadow: 0 1px 6px 0 rgba(36,74,115,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.19s;
}
.features-grid > div:hover, .process-grid > div:hover, .team-profiles > div:hover {
  box-shadow: 0 4px 18px 0 rgba(36,74,115,0.10), 0 1.5px 4px 0 rgba(107,181,122,.06);
  transform: translateY(-4px) scale(1.01);
}
.features-grid img, .process-grid img, .team-profiles img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
}
.features-grid h3, .process-grid h3, .team-profiles h3 {
  font-size: 1.13rem;
  color: #244a73;
}

@media (max-width: 600px) {
  .features-grid > div, .process-grid > div, .team-profiles > div {
    flex-basis: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* ==== Lists and Badges ==== */
.badge {
  display: inline-flex;
  align-items: center;
  background: #eaf6ea;
  border-radius: 6px;
  color: #397d56;
  font-size: 0.97rem;
  font-weight: 700;
  padding: 4px 12px;
  margin-left: 12px;
}
.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}
.service-badges span {
  background: #f1f3f6;
  color: #244a73;
  border-radius: 16px;
  font-size: 0.95rem;
  padding: 6px 16px;
  font-weight: 500;
  letter-spacing: .01em;
}
.topic-list, .faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.topic-list li a {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  font-size: 1.03rem;
  color: #244a73;
  transition: color 0.2s;
}
.topic-list li a:hover, .topic-list li a:focus { color: #6bb57a; }

.faq-search {
  margin-bottom: 18px;
}
.faq-search input[type="text"] {
  width: 100%;
  font-size: 1rem;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid #e0e2e1;
  background: #fff;
  transition: border 0.17s;
  outline: none;
  margin-bottom: 8px;
}
.faq-search input[type="text"]:focus {
  border: 1.5px solid #6bb57a;
}

.faq-accordion details {
  border-radius: 8px;
  background: #f1f3f6;
  margin-bottom: 10px;
  box-shadow: 0 1px 5px 0 rgba(100,145,115,0.04);
  overflow: hidden;
  transition: box-shadow .19s;
}
.faq-accordion details[open] {
  box-shadow: 0 6px 18px 0 rgba(44,78, 110,0.07);
}
.faq-accordion summary {
  font-size: 1.05rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  color: #244a73;
  cursor: pointer;
  padding: 13px 20px;
  outline: none;
  transition: background 0.16s;
}
.faq-accordion summary:hover, .faq-accordion summary:focus { background: #eaf6ea; }
.faq-accordion details p {
  padding: 0 22px 14px 22px;
  color: #222;
  background: none;
  font-size: 1rem;
}

/* ==== CTA Section ==== */
.cta-section {
  background: #eaf6ea;
  border-radius: 16px;
  padding: 40px 20px;
  margin: 40px 0 60px 0;
}
.cta-section h2 {
  color: #244a73;
  margin-bottom: 16px;
}

/* ==== Testimonials ==== */
.testimonials {
  background: #f1f3f6;
  border-radius: 16px;
  margin: 50px 0 60px 0;
}
.testimonials .container {
  padding-top: 30px;
  padding-bottom: 30px;
}
.testimonials .content-wrapper {
  gap: 26px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  color: #153250;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(36,74,115,0.07);
  margin-bottom: 20px;
  padding: 24px 22px 15px 22px;
  min-width: 200px;
  max-width: 540px;
  font-size: 1.09rem;
  line-height: 1.6;
  border-left: 5px solid #6bb57a;
  transition: box-shadow 0.22s, border-left-color .22s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 25px 0 rgba(107,181,122,0.07),0 2.5px 15px rgba(50,99,168,0.04);
  border-left-color: #244a73;
}
.testimonial-card span {
  font-family: 'Roboto Slab', serif;
  font-size: 0.99rem;
  color: #244a73;
  opacity: 0.88;
}

@media (min-width: 700px) {
  .content-wrapper {
    flex-direction: row;
    gap: 32px;
  }
  .testimonials .content-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: flex-start;
  }
  .testimonial-card {
    min-width: 320px;
    max-width: 420px;
    margin-bottom: 0;
  }
}

/* ==== Contact Teaser & Contact Page List ==== */
.contact-teaser, .contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #eaf6ea;
  padding: 32px 18px 22px 18px;
  border-radius: 14px;
  margin-bottom: 28px;
  box-shadow: 0 1.5px 7px 0 rgba(36,74,115,0.05);
}
.contact-teaser ul,
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}
.contact-teaser li, .contact-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.08rem;
  color: #244a73;
}
.contact-teaser a, .contact-list a {
  color: #244a73;
  font-weight: 600;
  transition: color 0.19s;
}
.contact-teaser a:hover, .contact-list a:hover { color: #6bb57a; }
.contact-teaser img, .contact-list img {
  width: 24px; height: 24px;
  filter: grayscale(.2) contrast(1.2);
}

/* ==== Card Container ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(36,74,115,0.07);
  padding: 24px 18px 20px 18px;
  position: relative;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 220px;
  transition: box-shadow 0.17s, transform 0.16s;
}
.card:hover { box-shadow: 0 8px 36px 0 rgba(36,74,115,0.12); transform: translateY(-2px) scale(1.012); }

/* ==== Content Grid (used for custom grid-like layouts) ==== */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ==== Text-Image Section ==== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* ==== Feature Item ==== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== Map Placeholder ==== */
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0 18px 0;
}
.map-placeholder img {
  width: 160px;
  height: 160px;
  opacity: 0.76;
}

/* ==== Footer ==== */
footer {
  width: 100%;
  background: #244a73;
  color: #fff;
  padding: 32px 16px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  position: relative;
}
.footer-brand img {
  width: 55px; height: 55px;
  margin-bottom: 5px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.footer-nav a {
  color: #fff;
  opacity: 0.84;
  font-size: 0.98rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  transition: color 0.21s, opacity .21s;
}
.footer-nav a:hover, .footer-nav a:focus { color: #6bb57a; opacity: 1; }
.footer-contact p {
  font-size: .97rem;
  color: #eaf6ea;
  opacity: 0.91;
  text-align: center;
  margin-bottom: 6px;
}
footer small {
  display: block;
  color: #c5dbe8;
  opacity: 0.82;
  text-align: center;
  margin-top: 3px;
}

@media (min-width: 700px) {
  footer {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    flex-wrap: wrap;
    padding: 36px 48px 16px 48px;
  }
  .footer-brand { margin-bottom: 0; }
  .footer-contact { margin-top: 0; }
  footer small { width: 100%; text-align: right; margin-top: 8px; }
}

/* ==== Responsive Section Spacing/Alignment ==== */
@media (min-width: 580px) {
  .section { padding: 48px 34px; margin-bottom: 68px; }
}
@media (min-width: 900px) {
  .section { padding: 56px 68px; margin-bottom: 88px; }
  .cta-section { padding: 52px 80px; }
}

/* ==== Badge responsiveness ==== */
@media (max-width: 450px) {
  .badge { font-size: 0.92rem; padding:2px 8px; }
}

/* ==== Misc. Utility Classes ==== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }

/* ==== Scrollbar Styling for Scandinavian Clean Effect ==== */
::-webkit-scrollbar {
  width: 8px;
  background: #eaf6ea;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #c5dbe8;
  border-radius: 8px;
}

/* ==== Cookie Consent Banner ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #244a73;
  border-top: 2px solid #eaf6ea;
  box-shadow: 0 -2px 18px 0 rgba(36,74,115,0.10);
  padding: 22px 16px 24px 16px;
  z-index: 10200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.35s cubic-bezier(.42,0,.6,1), transform 0.31s cubic-bezier(.42,.19,.82,.92);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 1rem;
  color: #244a73;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 5px;
}
.cookie-banner button, .cookie-banner .btn {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 7px;
  cursor: pointer;
  border: none;
  padding: 10px 22px;
  margin-right: 3px;
  box-shadow: none;
  transition: background 0.17s, color 0.17s;
}
.cookie-banner .accept {
  background: #244a73;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #6bb57a;
  color: #fff;
  outline: none;
}
.cookie-banner .reject {
  background: #f9f6f2;
  color: #244a73;
  border: 1.5px solid #244a73;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #eaf6ea;
  color: #397d56;
  outline: none;
}
.cookie-banner .settings {
  background: #f9f6f2;
  color: #6bb57a;
  border: 1.5px solid #6bb57a;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #eaf6ea;
  color: #244a73;
  outline: none;
}

/* ==== Cookie Modal ==== */
.cookie-modal-overlay {
  position: fixed; inset: 0;
  z-index: 10500;
  background: rgba(36, 74, 115, 0.76);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.25s cubic-bezier(.4, 0, .8, 1);
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.visible { opacity: 1; pointer-events: auto; }
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  padding: 36px 26px 24px 26px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 12px 48px 0 rgba(36,74,115,0.12);
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.26rem;
  margin-bottom: 14px;
  color: #244a73;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: #244a73;
  font-weight: 500;
}
.cookie-modal input[type=checkbox] {
  accent-color: #6bb57a;
  width: 18px; height: 18px;
}
.cookie-modal .cookie-category.essential input { visibility: hidden; }
.cookie-modal .cookie-category.essential label::before {
  content: '\f00c'; /* checkmark fa */
  font-family: Arial, sans-serif;
  font-size: 1.13rem;
  color: #6bb57a;
  margin-right: 6px;
  display: inline-block;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #244a73;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #6bb57a; outline: none; }

@media (max-width: 500px) {
  .cookie-modal {
    max-width: 98vw;
    padding: 24px 6vw 16px 6vw;
  }
}

/* ==== Animations & Micro-Interactions ==== */
.btn-primary, .btn-secondary, .mobile-menu-close, .mobile-nav a, .mobile-menu-toggle {
  transition: background 0.18s, color 0.19s, transform .16s;
}
.section, .features-grid > div, .testimonial-card, .card {
  will-change: box-shadow, transform;
}

/* ==== Accessibility Focus Outline ==== */
:focus-visible {
  outline: 2px solid #244a73;
  outline-offset: 2px;
}

/* ==== Hide cookie and mobile menu when not open ==== */
.mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none; }
.mobile-menu.open, .cookie-banner.visible, .cookie-modal-overlay.visible {
  display: flex;
}

/* Ensure minimum 20px gap between all major content sections/cards */
section, .section, .card, .testimonial-card, .features-grid > div, .process-grid > div, .team-profiles > div, .card-container > * {
  margin-bottom: 20px;
}

/* Keep gap between all flexbox containers */
.card-container, .content-grid, .features-grid, .process-grid, .team-profiles, .topic-list, .faq-accordion, .contact-teaser ul, .contact-list {
  gap: 20px;
}

/* ==== End Scandinavian Clean CSS ==== */
