/* ----------------------------------------------------
   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-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background-color: #FAF5EF; /* brand secondary */
  color: #234051;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #FAF5EF;
  line-height: 1.6;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  padding-left: 1.5em;
}
a {
  color: #145077;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #38A47A;
  text-decoration: underline;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}

/* ----------------------------------------------------
   BRAND & PASTEL COLOR SCHEME
---------------------------------------------------- */
:root {
  --brand-primary: #145077;
  --brand-secondary: #FAF5EF;
  --brand-accent: #38A47A;
  --brand-bg: #FAF5EF;
  --brand-dark: #234051;
  --pastel-pink: #FFE6F2;
  --pastel-yellow: #FFF9E5;
  --pastel-blue: #EAF6FB;
  --pastel-green: #DCFAE7;
  --pastel-purple: #F4E9FC;
  --danger: #CC3B4A;
}

/* ----------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: #145077;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol {
  font-size: 1.05rem;
  margin-bottom: 14px;
}
strong {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  color: #145077;
}
.subheadline {
  color: #458ec2;
  font-size: 1.15rem;
  margin-bottom: 28px;
  font-family: 'Open Sans', Arial, sans-serif;
  opacity: 0.92;
}
blockquote {
  font-style: italic;
  color: #234051;
  background: var(--pastel-blue);
  border-left: 4px solid #38A47A;
  margin: 0;
  padding: 16px 24px 8px 22px;
}
cite {
  display: block;
  color: #38A47A;
  margin-top: 8px;
  font-size: 1rem;
}

/* ----------------------------------------------------
   LAYOUT CONTAINERS & FLEXBOX PATTERNS
---------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--pastel-blue);
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(20,80,119,0.08);
  padding: 24px 20px;
  transition: box-shadow 0.25s, transform 0.18s;
}
.card:hover, .service-item:hover {
  box-shadow: 0 6px 24px 0 rgba(56,164,122,0.11);
  transform: translateY(-3px) scale(1.025);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-yellow);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(20,80,119,0.07);
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(125deg, var(--pastel-blue) 65%, var(--pastel-pink) 100%);
  padding: 60px 0 40px 0;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  min-height: 280px;
  margin-bottom: 54px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

/* Feature Grid & Cards */
.feature-grid,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.feature-grid > div,
.service-item {
  background: var(--pastel-purple);
  border-radius: 15px;
  box-shadow: 0 1px 6px 0 rgba(20,80,119,0.06);
  padding: 28px 20px 20px 20px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow 0.22s, transform 0.2s;
}
.feature-grid img {
  width: 52px;
  height: 52px;
  margin-bottom: 2px;
}
.service-item .preis {
  display: inline-block;
  margin: 8px 0 16px 0;
  font-family: 'Roboto Slab', serif;
  color: #38A47A;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Text Sections */
.text-section {
  background: var(--pastel-green);
  border-radius: 14px;
  padding: 34px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px 0 rgba(56,164,122,0.08);
  color: #234051;
}

/* Section Titles */
.content-wrapper > h2, .content-wrapper > h1 {
  text-align: left;
}

/* ----------------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 0 16px 0 rgba(20,80,119,0.065);
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 2px;
  border-radius: 4px;
  transition: background 0.16s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-pink);
  color: var(--brand-accent);
}
.cta.primary {
  font-family: 'Roboto Slab', serif;
  background: var(--brand-accent);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-left: 16px;
  box-shadow: 0 1px 8px 0 rgba(56,164,122,.10);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cta.primary:hover, .cta.primary:focus {
  background: #145077;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 2px 16px 0 rgba(56,164,122,.13);
}
.cta.secondary {
  font-family: 'Roboto Slab', serif;
  background: #fff;
  color: #145077;
  border: 1.5px solid #38A47A;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 14px;
  margin-left: 0;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--pastel-green);
  color: #38A47A;
  border: 1.5px solid #145077;
}

/* Mobile Burger Styles */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-accent);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.18s;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #145077;
  color: #fff;
}

/* ----------------------------------------------------
   MOBILE MENU OVERLAY
---------------------------------------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(250,245,239,0.99);
  box-shadow: 0 8px 40px rgba(20, 80, 119, 0.17);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.4,.8,.5,1);
  z-index: 1500;
  padding: 36px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #145077;
  font-size: 2.5rem;
  font-weight: 400;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 10px;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #38A47A; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 16px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #145077;
  background: none;
  padding: 10px 6px;
  border-radius: 8px;
  transition: background 0.15s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-pink);
  color: #38A47A;
}

/* Hide navigation on mobile, show burger */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
footer {
  background: #fff;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -2px 20px 0 rgba(20,80,119,0.07);
  padding-top: 34px;  
  margin-top: 62px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  padding-bottom: 20px;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  font-size: 1rem;
  color: #145077;
  opacity: 0.93;
  margin-bottom: 0;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #38A47A;
}
.footer-bottom {
  width: 100%;
  text-align: center;
  font-size: 0.97rem;
  color: #234051;
  background: transparent;
  padding: 16px 0 6px 0;
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN
---------------------------------------------------- */
@media (max-width: 1150px) {
  .container { max-width: 960px; }
}
@media (max-width: 1050px) {
  .container { max-width: 780px; }
}
@media (max-width: 900px) {
  .footer-nav { gap: 24px; }
  .content-grid, .feature-grid, .service-list { gap: 14px; }
}
@media (max-width: 768px) {
  :root { font-size: 15px; }
  .container { max-width: 94vw; padding: 0 10px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .hero { padding: 38px 0 22px 0; margin-bottom: 36px; border-radius: 20px; min-height: 170px; }
  .footer-nav { flex-direction: column; gap: 12px; }
  .footer-nav nav { gap: 7px; }
  .section { padding: 24px 8px; margin-bottom: 36px; }
  .feature-grid, .service-list {
    gap: 12px;
    justify-content: flex-start;
  }
  .feature-grid > div, .service-item {
    min-width: 170px;
    max-width: 100%;
    padding: 12px 12px 10px 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 8px;
  }
  .text-section { padding: 16px 6px; }
  .cta.primary, .cta.secondary { padding: 10px 15px; font-size: 1rem; }
  .hero .content-wrapper { padding-left: 0; padding-right: 0; }
}
@media (max-width: 560px) {
  :root { font-size: 14px; }
  h1 { font-size: 1.38rem; }
  .main-nav, .footer-nav nav { font-size: 0.98rem; }
  .card, .text-section { padding: 10px 5px; }
}

/* Responsive flex directions */
@media (max-width: 768px) {
  .content-grid, .feature-grid, .service-list {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ----------------------------------------------------
   SPACING & FLEXBOX CONSISTENCY
---------------------------------------------------- */
section {
  margin-bottom: 60px;
  padding-bottom: 0;
}
.card {
  margin-bottom: 20px;
}
.card-container {
  gap: 24px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  gap: 30px;
  align-items: center;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
}
.feature-item {
  gap: 15px;
}

/* Ensure no overlapping, proper flex usage */
.card, .service-item, .feature-grid > div, .testimonial-card {
  min-width: 0;
  box-sizing: border-box;
}

/* Decorative absolute positioning with z-index safety */
.card:before, .feature-grid > div:before, .service-item:before {
  content: none;
}

/* ----------------------------------------------------
   BUTTONS & MICRO-INTERACTIONS
---------------------------------------------------- */
button,
.cta,
input[type=submit] {
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, border 0.18s;
}
button:active, .cta:active { transform: scale(0.97); }

/* ----------------------------------------------------
   FORMS & INPUT FIELDS
---------------------------------------------------- */
input,
select,
textarea {
  background: #fff;
  border: 1.2px solid #c9dcde;
  padding: 9px 12px;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  margin-bottom: 14px;
  width: 100%;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.2px solid #38A47A;
  background: var(--pastel-green);
}

/* ----------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
---------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1900;
  background: var(--pastel-purple);
  color: #234051;
  box-shadow: 0 -2px 30px 0 rgba(20,80,119,0.08);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 22px;
  padding: 22px 20px 16px 22px;
  font-size: 1.01rem;
  border-top: 2px solid #e7ebee;
  animation: banner-slide-in 0.5s cubic-bezier(.4,.77,.6,1);
}
@keyframes banner-slide-in {
  from { transform: translateY(100%);} to { transform: translateY(0); }
}
.cookie-banner__content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 480px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #fff;
  color: #145077;
  border: 1.3px solid #38A47A;
  border-radius: 30px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 20px;
  transition: background 0.19s, color 0.19s, border 0.18s;
  box-shadow: 0 1px 7px 0 rgba(56,164,122,.06);
}
.cookie-btn.accept {
  background: #38A47A;
  color: #fff;
  border: 1.3px solid #38A47A;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #145077; color: #fff; border: 1.3px solid #145077;
}
.cookie-btn.reject {
  background: #fff;
  color: #CC3B4A;
  border: 1.3px solid #CC3B4A;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFE6F2; color: #CC3B4A;
}
.cookie-btn.settings {
  background: var(--pastel-blue);
  color: #145077;
  border: 1.3px solid #38A47A;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #38A47A; color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 10px 10px 10px;
    font-size: 0.98rem;
  }
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.30);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn .18s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #FAF5EF;
  border-radius: 18px;
  box-shadow: 0 7px 42px 0 rgba(20,80,119,0.13);
  padding: 32px 28px 18px 28px;
  min-width: 320px;
  max-width: 95vw;
  animation: modal-in 0.4s cubic-bezier(.4,.8,.5,1);
}
@keyframes modal-in {
  from { transform: translateY(60px) scale(0.91); opacity: 0.70;} to { transform:none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: #145077;
  margin-bottom: 16px;
}
.cookie-modal form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.cookie-toggle {
  width: 40px;
  height: 20px;
  appearance: none;
  background: #e7ebee;
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle:checked {
  background: #38A47A;
}
.cookie-toggle:disabled {
  background: #BADDB8;
  opacity: 0.8;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 0.5px; top: 0.5px;
  box-shadow: 0 1px 6px 0 rgba(20,80,119,0.09);
  transition: left 0.16s;
}
.cookie-toggle:checked:before {
  left: 19.2px;
}
.cookie-toggle:disabled:before {
  background: #e7ebee;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 15px;
}

.cookie-modal .desc {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 16px;
}

/* ----------------------------------------------------
   UTILITIES & MISC
---------------------------------------------------- */
.hide { display: none !important; }
.text-center { text-align: center;}
.text-right { text-align: right; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 20px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 18px; }
.mb-3 { margin-bottom: 36px; }
.w-100 { width: 100%; }
.lg-shadow { box-shadow: 0 8px 40px 0 rgba(20,80,119,0.13); }

/* Focus accessibility outline */
a:focus, button:focus, .cta:focus, input:focus, .cookie-btn:focus {
  outline: 2px solid #38A47A;
  outline-offset: 2px;
}

/* ----------------------------------------------------
   SOFT PASTEL ATMOSPHERE & DECORATIVE
---------------------------------------------------- */
.section, .feature-grid > div, .service-item, .card, .testimonial-card, .text-section {
  box-shadow: 0 2px 12px 0 rgba(90,145,219,0.045);
}
.section {
  background: var(--pastel-yellow);
  border-radius: 14px;
  margin-bottom: 60px; /* fallback */
}

/* Dreamy gentle gradients backgrounds, never intrusive */
.hero {
  background: linear-gradient(125deg, var(--pastel-blue) 65%, var(--pastel-pink) 100%);
}

/* Subtle transitions throughout */
* {
  transition: background 0.16s, color 0.16s, border 0.16s, box-shadow 0.16s;
}

/* ----------------------------------------------------
   CRITICAL HIGH CONTRAST FOR TESTIMONIALS
---------------------------------------------------- */
.testimonial-card {
  background: var(--pastel-yellow);
  color: #234051;
  border: 1.2px solid #ecdfa7;
}
.testimonial-card blockquote { color: #234051; background: none; border-left: 3px solid #38A47A; }
.testimonial-card cite { color: #38A47A; }

/* ----------------------------------------------------
   OTHER STYLES & IMPROVEMENTS
---------------------------------------------------- */
ul {
  list-style: disc;
  margin-left: 24px;
}
ol {
  list-style: decimal;
  margin-left: 24px;
}
@media (max-width: 480px) {
  h1 { font-size: 1.07rem; }
  h2 { font-size: 1rem; }
  .feature-grid, .service-list, .content-grid { gap: 8px; }
  .card, .testimonial-card, .service-item, .feature-grid > div, .text-section { padding: 7px 4px; }
}

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