/* ==================================================
   Arcane Harbor Beratung – Elegant Classic CSS Theme
   Mobile-first, modern, only Flexbox layouts
   Brand colors, fonts, cookie/banner/nav UI
   ================================================== */

/*********************
 1. Reset & base
*********************/
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: #173045;
  background: #F5F8F6;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #19324A;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #39A6A3;
  text-decoration: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 600;
  color: #19324A;
  line-height: 1.22;
  margin-bottom: 0.7em;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
p, blockquote {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #22384d;
  margin-bottom: 1em;
}
blockquote {
  border-left: 4px solid #39A6A3;
  padding-left: 1.2em;
  font-style: italic;
  color: #19324A;
  margin-bottom: 1.5em;
  background: #F0F4F2;
}
em, i { font-style: italic; }
strong, b { font-weight: 700; }

/***************************************
2. Container, Layout, Spacing Utilities
***************************************/
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px 0 rgba(25,50,74,0.07);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container, .card-grid, .features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(25,50,74,0.07);
  padding: 26px 24px 22px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 310px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(25,50,74,0.11);
  transform: translateY(-2px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.service-card {
  background: #F5F8F6;
  border-radius: 12px;
  box-shadow: 0 1px 12px 0 rgba(25,50,74,0.04);
  padding: 22px 20px 18px 20px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 290px;
  transition: box-shadow 0.2s;
}
.service-card:hover {
  box-shadow: 0 4px 22px 0 rgba(25,50,74,0.12);
}
.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: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 12px 0 rgba(25,50,74,0.09);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 510px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card strong {
  font-size: 1.07em;
  color: #19324A;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.testimonial-card p {
  color: #19324A;
  font-style: italic;
}
.testimonial-card div {
  color: #39A6A3;
  font-size: 1.2em;
  letter-spacing: 0.15em;
  margin-bottom: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid > div {
  background: #FAFCFB;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(25,50,74,0.05);
  padding: 20px 18px 17px 18px;
  min-width: 190px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.2s;
}
.features-grid > div:hover {
  box-shadow: 0 2px 12px 0 rgba(25,50,74,0.12);
}

/*********************
 3. Header & Navigation
*********************/
header {
  background: #fff;
  border-bottom: 1.5px solid #F0F4F2;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  height: 48px;
  width: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Georgia, serif;
  color: #19324A;
  font-size: 1rem;
  padding: 7px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.18s, background 0.16s;
  letter-spacing: 0.01em;
}
nav a:hover, nav a:focus {
  background: #F5F8F6;
  color: #39A6A3;
}
.cta-primary {
  font-family: 'Montserrat', Georgia, serif;
  background: #19324A;
  color: #fff!important;
  padding: 12px 28px;
  border: none;
  outline: none;
  border-radius: 999px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 2px 10px 0 rgba(25,50,74,0.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
  margin: 0 0 0 22px;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #39A6A3;
  color: #fff!important;
  box-shadow: 0 4px 22px 0 rgba(25,50,74,0.16);
  transform: translateY(-2px);
}
.cta-secondary {
  font-family: 'Montserrat', Georgia, serif;
  background: transparent;
  color: #19324A;
  border: 1.5px solid #19324A;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.2s, color 0.2s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #19324A;
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #19324A;
  cursor: pointer;
  outline: none;
  margin-left: 20px;
  z-index: 200;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #39A6A3;
}
/* Mobile menu overlay (hidden by default) */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,50,74,0.95);
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.62,0,0.44,1), opacity 0.2s;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 36px 22px 22px 22px;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.25rem;
  color: #fff;
  background: none;
  border: none;
  margin-bottom: 32px;
  cursor: pointer;
  align-self: flex-end;
  z-index: 1001;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #39A6A3;
}
.mobile-nav {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 70vw;
  max-width: 350px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 0 12px 10px;
  width: 100%;
  border-radius: 7px;
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #19324A;
  color: #39A6A3;
}

/*********************
 4. Footer
*********************/
footer {
  background: #FAFCFB;
  border-top: 1.5px solid #F0F4F2;
  padding: 34px 0 18px 0;
  margin-top: 18px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
footer nav a {
  color: #19324A;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.97rem;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: #F5F8F6;
  color: #39A6A3;
}
footer p {
  font-size: 0.93rem;
  color: #6B7686;
  margin-bottom: 0;
  font-family: 'Open Sans', Arial, sans-serif;
}
footer img {
  height: 36px;
  width: auto;
}

/**************************
 5. Tables, Lists, Others
***************************/
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
  font-size: 1rem;
  background: #FFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 10px rgba(25,50,74,0.08);
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid #F0F4F2;
  text-align: left;
}
th {
  color: #19324A;
  background: #FAFCFB;
  font-size: 1.1rem;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
}
td {
  color: #22384d;
}
tr:last-child td {
  border-bottom: none;
}
.address-block, .map-embed {
  background: #FAFCFB;
  padding: 18px 24px;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 1px 8px 0 rgba(25,50,74,0.06);
}

/**********************
 6. Accordions & FAQ
***********************/
.faq-accordion, .mini-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  border-radius: 9px;
  background: #FAFCFB;
  box-shadow: 0 1px 6px 0 rgba(25,50,74,0.06);
  padding: 18px 18px 14px 18px;
}
.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-family: 'Montserrat', Georgia, serif;
  color: #19324A;
}
.mini-faq-accordion > div {
  background: #FAFCFB;
  box-shadow: 0 1px 6px 0 rgba(25,50,74,0.05);
  padding: 14px 16px 11px 16px;
  border-radius: 9px;
  margin-bottom: 10px;
}
.mini-faq-accordion h3 {
  font-size: 1.08rem;
  margin-bottom: 5px;
}

/**********************
 7. Cookie Consent Banner
***********************/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #19324A;
  color: #fff;
  padding: 22px 20px 18px 20px;
  box-shadow: 0 -2px 18px 0 rgba(25,50,74,0.24);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  z-index: 1200;
  font-size: 1rem;
  transition: opacity 0.3s, transform 0.32s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-btn {
  background: #39A6A3;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 20px;
  margin-left: 7px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.2s, box-shadow 0.16s;
  box-shadow: 0 1px 8px 0 rgba(25,50,74,0.07);
}
.cookie-banner .cookie-btn.reject {
  background: #F5F8F6;
  color: #19324A;
  border: 1px solid #39A6A3;
}
.cookie-banner .cookie-btn.settings {
  background: transparent;
  color: #39A6A3;
  border: 1px solid #39A6A3;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #19324A;
  color: #fff;
  box-shadow: 0 2px 15px rgba(25,50,74,0.15);
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #e4eeea;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #F5F8F6;
  color: #19324A;
}

/***********************
 8. Cookie Modal (Preferences)
***********************/
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,50,74,0.70);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  color: #19324A;
  max-width: 400px;
  width: 91vw;
  border-radius: 12px;
  box-shadow: 0 4px 36px 0 rgba(25,50,74,0.18);
  padding: 30px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-title {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.32rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.75rem;
  color: #19324A;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #39A6A3;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #F0F4F2;
  border-radius: 24px;
  transition: background 0.23s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #39A6A3;
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.23s;
  box-shadow: 0 1px 5px rgba(25,50,74,0.07);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}
.cookie-category.essential label {
  color: #6B7686;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-actions .cookie-btn {
  margin: 0;
}

/**********************
 9. Responsive Breakpoints
**********************/
@media (max-width: 1080px) {
  .container {
    padding: 0 14px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
  }
  .section, section {
    padding: 30px 10px;
    margin-bottom: 40px;
  }
  header .container {
    flex-wrap: wrap;
    gap: 18px;
  }
}
@media (max-width:768px) {
  html { font-size: 15px; }
  .section, section {
    padding: 20px 3vw;
    margin-bottom: 36px;
  }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  .content-wrapper { gap: 14px; }
  .card-container, .card-grid, .features-grid {
    gap: 16px;
    flex-direction: column;
  }
  .card, .service-card, .features-grid > div {
    min-width: 90%;
    flex: 1 1 100%;
  }
  nav {
    display: none;
  }
  .cta-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width:600px) {
  body {
    font-size: 0.98rem;
  }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.08rem; }
  footer .container { gap: 13px; }
  .section, section { margin-bottom: 28px; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/*********************************************
 10. Utility, Spacing & Accessibility Helpers
*********************************************/
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.m-b-20 { margin-bottom:20px; }
.m-b-40 { margin-bottom:40px; }
.p-0 { padding:0!important; }

/*********************************************
 11. Subtle Animation for Cards & Buttons
*********************************************/
.card, .service-card, .testimonial-card, .features-grid > div {
  transition: box-shadow 0.2s, transform 0.20s;
}
.card:hover, .service-card:hover, .testimonial-card:hover, .features-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(25,50,74,0.16);
  transform: translateY(-1px) scale(1.018);
}
.cta-primary, .cta-secondary, .cookie-btn {
  transition: color 0.18s, background 0.2s, box-shadow 0.16s, transform 0.16s;
}

/*********************************************
 12. Misc Styles for Brand and Accessibility
*********************************************/
::-webkit-selection {
  background: #39A6A3;
  color: #fff;
}
::selection {
  background: #39A6A3;
  color: #fff;
}

/* Hide mobile menu and show navigation on desktop by default */
@media (min-width: 769px) {
  .mobile-menu {
    display:none!important;
  }
  .mobile-menu-toggle {
    display: none!important;
  }
  nav {
    display: flex!important;
  }
}
/* Ensure adequate white space for all sections */
.section, section {
  box-sizing: border-box;
  margin-bottom: 60px;
}

/*********************************************
 13. Accessibility, Misc & Form fields fallback
*********************************************/
input, textarea, select, button {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: #fff;
  border: 1px solid #CED3DD;
  border-radius: 7px;
  padding: 9px 13px;
  color: #22384d;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #39A6A3;
}
button, .btn {
  cursor: pointer;
}

/*********************************************
 14. Brand Font Loading (Montserrat w/serif Fallbacks)
*********************************************/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');
body {
  font-family: 'Open Sans', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, .cta-primary, .cta-secondary, nav a, .mobile-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
}

/* END OF CSS */
