/* CSS RESET & NORMALIZATION */
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;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #F1F3EE;
  color: #333;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* BRAND/STYLE FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');
html {
  font-size: 16px;
  font-family: 'Lato', Georgia, 'Times New Roman', Times, serif;
  background: #F1F3EE;
}

/* TYPOGRAPHY SCALE & HIERARCHY */
h1, .h1 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 2.7rem;
  font-weight: 700;
  color: #354C5C;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 0.5em;
}
h2, .h2 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #354C5C;
  line-height: 1.15;
  margin-bottom: 0.7em;
}
h3, .h3 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #8F6B44;
  margin-bottom: 0.5em;
}
h4, .h4 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
}
p, li, ul, ol, span, a, label {
  font-family: 'Lato', Georgia, serif;
  font-size: 1rem;
  color: #2C2C2C;
  line-height: 1.7;
}
strong, b {
  font-weight: bold;
  color: #354C5C;
}
small {
  font-size: 0.875rem;
  color: #888;
}

/* CONTAINER & SECTION STYLES */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(53, 76, 92, 0.09);
}
@media (max-width: 900px) {
  .section {
    padding: 24px 6px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FLEXBOX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  flex: 1 1 340px;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(53, 76, 92, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 8px 32px rgba(53, 76, 92, 0.18);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* FEATURES & LISTS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 240px;
  min-width: 215px;
  background: #F1F3EE;
  border-radius: 12px;
  padding: 22px 18px 22px 18px;
  transition: box-shadow 0.19s, transform 0.16s;
  border: 1px solid #ede5dc;
}
.feature-item img {
  width: 40px;
  height: 40px;
}
.feature-item:hover {
  box-shadow: 0 4px 16px rgba(53,76,92,0.14);
  transform: translateY(-2px);
}

/* SERVICE-LIST */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px 22px 20px;
  box-shadow: 0 2px 16px rgba(53, 76, 92, 0.10);
  flex: 1 1 270px;
  min-width: 220px;
  margin-bottom: 20px;
  gap: 15px;
  border: 1px solid #ececec;
  transition: box-shadow 0.21s, transform 0.16s;
}
.service-item img {
  width: 44px;
  height: 44px;
}
.service-item:hover {
  box-shadow: 0 8px 32px rgba(53, 76, 92, 0.18);
  transform: translateY(-2px);
}

/* CARDS */
.card {
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #eee8e0;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #FAFAF9;
  border-radius: 13px;
  border: 1px solid #e9e6e1;
  box-shadow: 0 2px 8px rgba(53, 76, 92, 0.06);
  position: relative;
  transition: box-shadow 0.2s, border-color 0.23s;
}
.testimonial-card span {
  color: #8F6B44;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  flex-shrink: 0;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(53, 76, 92, 0.16);
  border-color: #d4c5b2;
}
.testimonial-card p {
  color: #354C5C;
  font-size: 1.07rem;
  margin-right: 8px;
}

/* BUTTONS */
.cta-btn {
  background: #354C5C;
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  font-size: 1.11rem;
  border-radius: 6px;
  padding: 14px 36px;
  letter-spacing: 0.01em;
  margin-top: 12px;
  transition: background 0.2s, transform 0.16s, box-shadow 0.16s;
  box-shadow: 0 2px 6px rgba(53, 76, 92, 0.09);
  border: 1px solid #314457;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #8F6B44;
  color: #fff;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 4px 16px rgba(53,76,92,0.16);
  border-color: #8F6B44;
}
.link {
  color: #8F6B44;
  font-weight: 600;
  position: relative;
  border-bottom: 1px solid #8F6B44;
  padding-bottom: 0.05em;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  transition: color 0.2s, border-color 0.2s;
}
.link:hover, .link:focus {
  color: #354C5C;
  border-color: #354C5C;
}

/* MAIN NAVIGATION */
header {
  background: #F9F8F6;
  border-bottom: 1px solid #ede5dc;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.main-nav > a {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  color: #354C5C;
  font-size: 1.03rem;
  transition: color 0.18s, background 0.18s, border-radius 0.15s;
  padding: 7px 10px;
  border-radius: 6px;
  margin-right: 2px;
  position: relative;
  z-index: 1;
}
.main-nav > a.cta-btn {
  padding: 10px 28px;
  margin-left: 30px;
}
.main-nav > a:hover:not(.cta-btn), .main-nav > a:focus:not(.cta-btn) {
  background: #ece8e2;
  color: #8F6B44;
  border-radius: 7px;
}
.main-nav img {
  height: 35px;
  margin-right: 12px;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: none;
  background: #354C5C;
  color: #fff;
  border-radius: 7px;
  border: none;
  font-size: 2.2rem;
  padding: 4px 13px 2px 13px;
  margin-right: 14px;
  transition: background 0.2s, transform 0.1s;
  z-index: 220;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #8F6B44;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(53,76,92,0.96);
  transform: translateX(-100vw);
  transition: transform 0.39s cubic-bezier(.42,.36,.16,.96);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 350;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  color: #fff;
  border: none;
  padding: 14px 19px 6px 13px;
  align-self: flex-end;
  margin-top: 8px;
  margin-bottom: 20px;
  cursor: pointer;
  z-index: 360;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #8F6B44;
  background: #fff;
  border-radius: 100px;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: flex-start;
  padding: 0 32px;
  margin-top: 25px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 14px 0;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  width: 100%;
  transition: color 0.19s, background 0.19s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F1F3EE;
  background: rgba(143,107,68,0.14);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 15px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 6px;
    padding: 0 6px;
  }
}
@media (max-width: 800px) {
  .main-nav > a:not(:first-child), .main-nav > a.cta-btn {
    font-size: .97rem;
  }
}
@media (max-width: 760px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 15px;
    right: 25px;
    z-index: 220;
  }
  header {
    padding-bottom: 4px;
    padding-top: 4px;
  }
}
@media (min-width: 761px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/*-------------------
  PAGE SECTIONS
--------------------*/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.next-steps {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.next-steps ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.contact-details-list p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact-details-list img {
  width: 24px;
  height: 24px;
  filter: grayscale(0.2);
}
/* MAIN LIST STYLES */
ul, ol {
  margin-left: 1.3em;
}
ul li::marker, ol li::marker {
  color: #8F6B44;
  font-size: 1.03em;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
}
ol li {
  padding-left: 0.2em;
}

/* FOOTER */
footer {
  padding: 0;
  background: #F9F8F6;
  border-top: 1px solid #ede5dc;
}
footer section {
  padding: 26px 0 0 0;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-bottom: 10px;
}
.footer-menu a {
  color: #8F6B44;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #354C5C;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
  color: #354C5C;
  font-size: 0.96em;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  filter: grayscale(0.25) brightness(1.05);
  opacity: 0.88;
  transition: filter 0.19s, opacity 0.17s;
}
.footer-social a:hover img,
.footer-social a:focus img {
  filter: grayscale(0) brightness(1.1);
  opacity: 1;
}
.footer-copyright {
  color: #AAA;
  font-size: 0.91rem;
  margin-bottom: 11px;
  font-family: 'Lato', serif;
}

/* ================== RESPONSIVE ====================== */
@media (max-width: 1200px) {
  .container {
    max-width: 990px;
  }
}
@media (max-width: 1024px) {
  .container {
    max-width: 830px;
  }
  .feature-item, .service-item, .card {
    min-width: 160px;
  }
}
@media (max-width: 899px) {
  .container {
    max-width: 99vw;
  }
  .feature-grid, .service-list, .card-container, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 750px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .section {
    padding: 14px 2px;
    margin-bottom: 30px;
  }
  .feature-grid, .service-list {
    flex-direction: column;
  }
  .feature-item, .service-item, .card {
    flex: 1 1 99%;
    min-width: 0;
  }
  .testimonial-card, .feature-item, .service-item{
    padding: 15px 10px;
  }
}

/* ========== MICRO-INTERACTIONS ========== */
.card, .feature-item, .service-item, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.17s, border-color 0.19s;
}
.card:hover, .card:focus,
.feature-item:hover,
.feature-item:focus,
.service-item:hover,
.service-item:focus,
.testimonial-card:hover,
.testimonial-card:focus {
  transform: translateY(-2px) scale(1.013);
  box-shadow: 0 8px 32px rgba(53,76,92,0.17);
  border-color: #dbcab8;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #F1F3EE;
  color: #354C5C;
  border-top: 2px solid #8F6B44;
  box-shadow: 0 -4px 24px rgba(53,76,92,0.12);
  z-index: 999;
  padding: 24px 8px 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(.39,.56,.27,.98);
  will-change: transform;
}
.cookie-consent.hide {
  transform: translateY(110%);
}
.cookie-consent.show {
  transform: translateY(0);
}
.cookie-consent-message {
  font-size: 1.02rem;
  color: #354C5C;
  text-align: center;
  max-width: 590px;
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  justify-content: center;
}
.cookie-btn {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  border-radius: 5px;
  font-size: 1rem;
  padding: 11px 22px;
  border: none;
  background: #354C5C;
  color: #fff;
  margin: 0 2px;
  transition: background .17s, box-shadow 0.19s, transform 0.16s;
}
.cookie-btn.reject {
  background: #8F6B44;
  color: #fff;
}
.cookie-btn.settings {
  background: #ece8e2;
  color: #354C5C;
  border: 1px solid #c9bbb0;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #8F6B44;
  color: #fff;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 2px 8px rgba(143,107,68,0.19);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #354C5C;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1400;
  background: rgba(53,76,92,.81);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: background 0.33s;
}
.cookie-modal {
  background: #fff;
  color: #354C5C;
  padding: 38px 30px 28px 30px;
  border-radius: 17px;
  box-shadow: 0 8px 38px rgba(53,76,92,0.20);
  max-width: 410px;
  min-width: 255px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: showModalCookie .35s cubic-bezier(.22,.68,.16,.96);
}
@keyframes showModalCookie {
  0% { opacity: 0; transform: translateY(90px) scale(.9); }
  80% { opacity: 1; transform: translateY(-5px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-title {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #354C5C;
  margin-bottom: 5px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F1F3EE;
  border-radius: 7px;
  padding: 12px 13px;
}
.cookie-modal-category label {
  flex: 1;
  font-size: 1.06rem;
}
/* Toggle switch for cookie modal */
.cookie-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #e1ded8;
  border-radius: 22px;
  transition: background .19s;
  margin-left: 8px;
}
.cookie-switch input {
  opacity: 0;
  width: 44px;
  height: 24px;
  position: absolute;
  left: 0; top: 0;
  z-index: 1;
  cursor: pointer;
}
.cookie-switch .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #8F6B44;
  transition: left .17s, background 0.21s;
}
.cookie-switch input:checked + .slider {
  left: 22px;
  background: #354C5C;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 13px;
  background: none;
  border: none;
  color: #8F6B44;
  font-size: 1.67rem;
  z-index: 2;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #354C5C;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}

@media (max-width: 499px) {
  .cookie-modal {
    max-width: 96vw;
    padding: 18px 4vw 16px 4vw;
    min-width: 0;
  }
}

/* ========== UTILITY ========== */
.d-none {
  display: none !important;
}
.d-flex {
  display: flex !important;
}
.justify-center {
  justify-content: center;
}
.align-center {
  align-items: center;
}

/* Subtle focus highlight for all focusable elements */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid #8F6B44;
  outline-offset: 1.5px;
  z-index: 2;
}

/* Headings responsive */
@media (max-width: 600px) {
  h1, .h1 {
    font-size: 2.1rem;
  }
  h2, .h2 {
    font-size: 1.33rem;
  }
  h3, .h3 {
    font-size: 1.1rem;
  }
}

/* ========== MISC ========== */
::-webkit-scrollbar {
  width: 10px;
  background: #F1F3EE;
}
::-webkit-scrollbar-thumb {
  background: #ede5dc;
  border-radius: 7px;
}

::selection {
  background: #8F6B44;
  color: #fff;
}

/* CRITICAL: No grid, columns, clamp, break-inside or absolute layout for content. */
/* Style for ol > li with icons (Ablauf page) */
ol img {
  width: 28px;
  height: 28px;
  margin-right: 9px;
  vertical-align: middle;
}

/* Ensuring all cards have at least 20px margin between them */
.card:not(:last-child),
.feature-item:not(:last-child),
.testimonial-card:not(:last-child),
.service-item:not(:last-child) {
  margin-bottom: 20px;
}

/* Prevent content overlap for all flex wrappers */
.card-container, .feature-grid, .service-list, .content-grid {
  gap: 24px;
}

/* Print styles for classic, clean print output */
@media print {
  header, footer, .cookie-consent, .mobile-menu { display: none !important; }
  main, .container { box-shadow: none !important; background: #fff !important; color: #000 !important; }
  h1, h2, h3, h4, h5, h6 { color: #222 !important; }
}
