/* ------------------------- CSS RESET & NORMALIZE ------------------------ */
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;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #F4F7FA;
  color: #242E3E;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #26A69A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #164d47;
  text-decoration: underline;
}

ul, ol {
  margin-left: 1.5rem;
  padding-left: 0.5rem;
  list-style: disc inside;
}

/* Selection */
::selection {
  background: #26A69A;
  color: #fff;
}

/* ----------------- BRAND FONTS (load from Google Fonts in HTML head) ---------------- */
h1, h2, h3, h4, h5, h6, .cta {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #242E3E;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #242E3E;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #26A69A;
}

p, li, ul, ol, .subheadline {
  font-family: 'Open Sans', Arial, sans-serif;
}

.subheadline {
  color: #26A69A;
  font-size: 1.25rem;
  margin-bottom: 28px;
  font-weight: 500;
}

strong {
  font-weight: 600;
  color: #242E3E;
}

/* ----------- CREATIVE ARTISTIC TYPOGRAPHY AND COLORS ------------ */
body, main {
  /* Use a playful background accent pattern */
  background-color: #F4F7FA;
  background-image: radial-gradient(circle at 25% 30%, #26A69a11 0, transparent 70%),
    radial-gradient(circle at 70% 60%, #242E3E0a 0, transparent 80%);
  background-repeat: no-repeat;
}

/* -------------- RESPONSIVE CONTAINER LAYOUTS ------------------- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

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

/* ------------------ HEADER & NAVIGATION ----------------------- */
header {
  width: 100%;
  padding: 24px 0;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(36,46,62,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 101;
}

header > img {
  max-height: 40px;
  margin-right: 18px;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #242E3E;
  font-size: 1rem;
  position: relative;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #26A69A;
  color: #fff;
  text-decoration: none;
}

.cta.primary {
  background: #26A69A;
  color: #fff !important;
  border: none;
  border-radius: 18px 6px 18px 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 38px;
  font-size: 1.1rem;
  margin-left: 18px;
  box-shadow: 0 3px 24px 0 #26A69a30;
  transition: background 0.22s, box-shadow 0.22s, transform 0.15s;
  display: inline-block;
  cursor: pointer;
  outline: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: #164d47;
  box-shadow: 0 7px 35px 7px #26A69a30;
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
}

/* Hide mobile menu elements by default */
.mobile-menu-toggle, .mobile-menu {
  display: none;
}

/* ----------------------- MAIN SECTIONS --------------------------- */
main {
  width: 100%;
  min-height: 60vh;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}

/* ------------ FLEX CONTAINER PATTERNS: MANDATORY CLASSES ----------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 16px 36px 14px 24px;
  box-shadow: 0 8px 32px 0 #242E3E13;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .24s, transform .22s;
  padding: 32px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover {
  box-shadow: 0 12px 36px 0 #26A69a25;
  transform: translateY(-3px) scale(1.012) rotate(-1.2deg);
}

.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 {
  background: #fff;
  color: #242E3E;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 18px 38px 11px 18px;
  box-shadow: 0 4px 18px 0 #26A69a24;
  font-size:1.08rem;
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 560px;
  transition: box-shadow 0.21s, transform .18s;
  position: relative;
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px 0 #26A69a35;
  transform: translateY(-2px) scale(1.02) rotate(0.7deg);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top:16px;
  margin-bottom:16px;
}

/* ----------------------- LISTS ------------------------------ */
ul, ol {
  margin-bottom: 18px !important;
  line-height: 1.7;
}
ul li, ol li {
  margin-bottom: 8px;
}

section ul li, section ol li {
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* ------------- CUSTOM ICON BULLETS ------------------ */
section ul li img {
  margin-right: 6px;
  width: 24px;
  height: 24px;
}

/* Artistic border accents */
section {
  border-left: 5px solid #26A69A33;
  border-radius: 0 32px 0 36px;
  position: relative;
  background: #fff;
}
section::before {
  content: '';
  position: absolute;
  top: 18px; left: -18px;
  width: 22px; height: 22px;
  background: #26A69A44;
  border-radius: 50%;
  z-index: 0;
  filter: blur(2px);
}

/* Remove border for hero section */
section:first-of-type, section.hero {
  border: none !important;
  background: linear-gradient(90deg, #F4F7FA 70%, #26A69A0a 100%);
}


/* ----------------------- FOOTER -------------------------- */
footer {
  background: #242E3E;
  color: #F4F7FA;
  padding: 44px 0 30px 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  justify-content: flex-start;
  margin-bottom: 25px;
}
footer nav a {
  color: #F4F7FA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.90;
  padding: 3px 3px;
  border-radius: 5px;
  transition: background 0.16s, color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  background: #26A69A;
  color: #fff;
  opacity: 1;
  text-decoration: none;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  margin-top: 10px;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0.92;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* ----------- HAMBURGER MOBILE MENU & ANIMATION ----------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 25px; right: 25px;
  z-index: 210;
  background: #26A69A;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  padding: 7px 18px 7px 18px;
  border-radius: 12px 22px 12px 18px;
  box-shadow: 0 4px 20px #242E3E22;
  transition: background 0.16s, transform .18s;
  cursor: pointer;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #164d47;
  transform: scale(1.06);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #242E3Eee;
  z-index: 2011;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transition: transform 0.38s cubic-bezier(.62,.09,.25,1), opacity 0.33s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
  transform: translateX(0%);
  animation: menuSlideIn 0.45s cubic-bezier(0.68,-0.55,0.27,1.55);
}
@keyframes menuSlideIn {
  from { transform: translateX(110%); }
  to { transform: translateX(0%); }
}

.mobile-menu .mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.45rem;
  margin: 27px 24px 5px 7px;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 11px 22px 11px 13px;
  transition: background 0.17s, color 0.2s;
  outline: none;
}
.mobile-menu .mobile-menu-close:hover,
.mobile-menu .mobile-menu-close:focus {
  background: #26A69A;
  color: #fff;
}

.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 21px;
  align-items: flex-start;
  padding: 26px 34px;
  margin-top: 7px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 12px 7px;
  border-radius: 13px;
  transition: background .16s, color .25s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #26A69A;
  color: #fff;
}

/* ------------- COOKIE CONSENT BANNER & MODAL ------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2020;
  background: #fff;
  box-shadow: 0 -4px 21px #242E3E1a;
  color: #242E3E;
  padding: 30px 12px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1.06rem;
  flex-wrap: wrap;
}
.cookie-banner p {
  flex: 1 1 220px;
  margin-right: 21px;
}
.cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btns .cookie-accept,
.cookie-btns .cookie-reject,
.cookie-btns .cookie-settings {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 13px 22px 13px 11px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.17s, color 0.17s, box-shadow .2s;
  cursor: pointer;
}
.cookie-btns .cookie-accept {
  background: #26A69A;
  color: #fff;
  box-shadow: 0 2px 18px #26A69a23;
}
.cookie-btns .cookie-accept:hover {
  background: #164d47;
}
.cookie-btns .cookie-reject {
  background: #F4F7FA;
  color: #242E3E;
  border: 1px solid #26A69A;
}
.cookie-btns .cookie-reject:hover {
  background: #26A69A22;
}
.cookie-btns .cookie-settings {
  background: #fff;
  color: #26A69A;
  border: 1.5px dashed #26A69A;
}
.cookie-btns .cookie-settings:hover {
  background: #F4F7FA;
  color: #164d47;
}

/* ----- Cookie Modal Popup ------ */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,46,62,0.73);
  z-index: 2040;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 24px 12px 36px 16px;
  box-shadow: 0 8px 44px #26A69a28;
  width: 93vw;
  max-width: 430px;
  padding: 36px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: cookieModalIn .42s cubic-bezier(0.78,-0.06,0.27,1.06);
}
@keyframes cookieModalIn {
  from { transform: translateY(40px) scale(.92); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal .modal-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #242E3E;
  font-size: 2rem;
  padding: 4px 9px;
  border-radius: 7px;
  margin-bottom: -20px;
  margin-top: -17px;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #F4F7FA;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.05rem;
  margin-bottom:11px;
}
.cookie-modal label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.02rem;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #26A69A;
  width: 1.2em; height: 1.2em;
  margin-right: 7px;
}
.cookie-category.essential label::after {
  content: ' (immer aktiviert)';
  color: #26A69A;
  font-size: 0.98em;
  font-weight: 600;
}

.cookie-modal .cookie-btns {
  justify-content: flex-end;
  gap: 15px;
}


/* ---------- RESPONSIVE DESIGN: MOBILE FIRST --------------- */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.55rem; }
  .card {
    padding: 18px 10px 17px 18px;
  }
  section {
    padding: 28px 5px;
  }
}
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 15px 0 8px 0;
  }
  header nav {
    display: none;
  }
  .cta.primary {
    margin-left: 0;
    margin-top: 7px;
    font-size: 1rem;
    padding: 11px 22px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
    opacity: 1;
    pointer-events: auto; /* let JS control open state */
    flex-direction: column;
  }
  section {
    padding: 24px 4px;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-wrapper {
    gap: 17px;
  }
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 98vw;
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  .container {
    padding-left: 2px;
    padding-right: 2px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.11rem; }
  section {
    margin-bottom: 33px;
    padding: 13px 0;
  }
}


/* -------------------- UTILITY STYLES ------------------------ */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.mb-20 {
  margin-bottom: 20px;
}
.mt-20 {
  margin-top: 20px;
}
.gap-20 {
  gap: 20px !important;
}

/* Spacing and minimum margin for card and section containers */
.card, .testimonial-card, section, .card-container > * {
  margin-bottom: 20px;
}

/* ------------- ARTISTIC HOVERS & MICRO-INTERACTIONS --------------- */
section h2:hover {
  color: #26A69A;
  text-shadow: 0 2px 11px #26A69a18;
  cursor: pointer;
}

.card a.cta, section a.cta {
  margin-top: 10px;
}

/* ------------- ACCESSIBILITY & CONTRAST: TESTIMONIALS -------------- */
.testimonial-card {
  background: #fff !important;
  color: #242E3E !important;
}

.testimonial-card p {
  font-size: 1.07em;
}
.testimonial-card strong {
  color: #26A69A;
  font-weight: 800;
}
.testimonial-card img {
  height: 23px;
  margin-right: 1px;
  display: inline-block;
}

/* --------------- FORMS (Kontakt, if needed in future) ----------- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 12px;
  border: 1.5px solid #26A69A;
  padding: 10px 15px;
  transition: border 0.17s, box-shadow 0.17s;
  outline: none;
  margin-bottom: 18px;
  background: #fff;
  color: #242E3E;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid #164d47;
  box-shadow: 0 2px 14px #26A69A24;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07em;
  font-weight: 500;
  color: #242E3E;
}

/* --------------- SCROLLBAR -------------------- */
::-webkit-scrollbar {
  width: 10px; height: 10px;
  background: #F4F7FA;
  border-radius: 15px;
}
::-webkit-scrollbar-thumb {
  background: #26A69A66;
  border-radius: 15px;
  transition: background 0.17s;
}
::-webkit-scrollbar-thumb:hover {
  background: #26A69A;
}

/* --------------- FOCUS STATE FOR ACCESSIBILITY --------------- */
a:focus, button:focus, .cta:focus {
  outline: 2px solid #26A69A;
  outline-offset: 2px;
}


/* ------------- ARTISTIC COLOR SEPARATORS (decoration) ------------- */
hr {
  border: none;
  height: 3px;
  background: #26A69A44;
  border-radius: 4px;
  margin: 36px 0;
}

/* --------------- DEBUG FLEXBOX ONLY -------------- */
/* .debug-flex * { outline: 1px dashed lightblue; } */

/* ----------------------- END CSS -------------------------- */
