/* 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,main,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #FCFBFF;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #26303d;
  background: #FCFBFF;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.01em;
}
main {
  flex: 1;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: #16467C;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1FC8A0;
}
ul, ol {
  padding-left: 24px;
}
li:not(:last-child) {margin-bottom: 8px;}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
button {cursor: pointer;}

/* Brand Colors & Pastel Theme */
:root {
  --eg-primary: #16467C;
  --eg-secondary: #1FC8A0;
  --eg-accent: #F6F8FA;
  --eg-bg: #FCFBFF;
  --eg-pink: #FDF0F6;
  --eg-mint: #E7FAF3;
  --eg-blue: #E0F0FF;
  --eg-lavender: #EEF0FB;
  --eg-yellow: #FFF7D6;
  --eg-purple: #EADDFB;
  --eg-border: #E5E7EB;
  --eg-text-dark: #26303d;
  --eg-text-base: #4A5970;
  --eg-shadow: 0 4px 24px 0 rgba(22,70,124,0.05);
  --eg-font-display: 'Montserrat', Arial, sans-serif;
  --eg-font-body: 'Roboto', Arial, sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--eg-font-display);
  color: var(--eg-primary);
  margin-bottom: 16px;
  line-height: 1.16;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
p, li, blockquote, em {
  color: var(--eg-text-base);
  font-size: 1rem;
  line-height: 1.7;
}
.text-section em, .brand-tagline em {
  font-family: var(--eg-font-display);
  color: var(--eg-secondary);
  font-style: italic;
}
blockquote {
  font-size: 1.1rem;
  color: var(--eg-primary);
  background: var(--eg-blue);
  border-left: 5px solid var(--eg-secondary);
  padding: 18px 22px 18px 22px;
  margin-bottom: 8px;
  border-radius: 14px;
  font-family: var(--eg-font-display);
  font-weight: 500;
}
strong { color: var(--eg-primary); font-weight: 700; }

/* Containers and Responsive Layouts */
.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--eg-bg);
  border-radius: 28px;
  box-shadow: var(--eg-shadow);
}
@media (max-width: 900px) {
  .container { padding: 0 8px; }
  .section { padding: 32px 8px; }
}

/* Flexbox Utility Layouts (Mandatory Spacing) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  min-width: 280px;
  background: var(--eg-mint);
  border-radius: 22px;
  box-shadow: var(--eg-shadow);
  padding: 24px;
}
.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;
  background: var(--eg-lavender);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: var(--eg-shadow);
  border: 1.5px solid var(--eg-border);
  max-width: 520px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
  }
}

/* Header Styles & Navigation */
header {
  background: linear-gradient(89deg, #FDF0F6 0%, #E0F0FF 100%);
  padding-top: 18px;
  padding-bottom: 18px;
  box-shadow: 0 6px 16px rgba(100, 140, 200, 0.04);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--eg-font-display);
  font-weight: 500;
  padding: 7px 0 7px 0px;
  color: var(--eg-primary);
  border-radius: 8px;
  transition: color .19s, background .21s;
  font-size: 1rem;
}
header nav a:hover, header nav a:focus {
  background: var(--eg-lavender);
  color: var(--eg-secondary);
}
.cta-btn {
  display: inline-block;
  background: var(--eg-secondary);
  color: white;
  font-family: var(--eg-font-display);
  font-size: 1.05rem;
  padding: 12px 30px;
  border-radius: 28px;
  font-weight: 600;
  box-shadow: 0 3px 18px rgba(31,200,160,.09);
  position: relative;
  margin-left: 22px;
  outline: none;
  border: none;
  transition: background 0.2s, transform 0.21s, box-shadow 0.22s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #19af8b;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 24px rgba(31,200,160,.18);
}

/* Mobile Navigation (Burger Menu) */
.mobile-menu-toggle {
  display: none;
  background: var(--eg-secondary);
  color: #fff;
  font-size: 2.2rem;
  border-radius: 50%;
  padding: 6px 16px 6px 12px;
  box-shadow: 0 2px 10px rgba(31,200,160,.11);
  transition: background .2s, box-shadow .16s;
  border: none;
  margin-left: 14px;
  z-index: 102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #146e59;
  box-shadow: 0 3px 18px rgba(31,200,160,.18);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 90vw;
  max-width: 370px;
  background: linear-gradient(120deg, #F6F8FA 60%, #EADDFB 100%);
  box-shadow: 0 0 44px 0 rgba(31,200,160,.18), 0 0 3px rgba(0,0,0,.15);
  z-index: 4000;
  transform: translateX(-110%);
  transition: transform 0.28s cubic-bezier(.77,.21,.57,1.14);
  will-change: transform;
  padding: 38px 26px 30px 24px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: var(--eg-pink);
  color: var(--eg-primary);
  font-size: 2rem;
  border: none;
  border-radius: 100%;
  padding: 5px 16px;
  position: absolute;
  top: 22px; right: 22px;
  cursor: pointer;
  z-index: 4400;
  box-shadow: 0 2px 10px rgba(253,240,246,0.17);
  transition: background .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--eg-lavender);
}
.mobile-nav {
  margin-top: 64px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-family: var(--eg-font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--eg-primary);
  padding: 13px 0 13px 6px;
  border-radius: 12px;
  transition: background .16s, color .15s;
  background: none;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--eg-blue);
  color: var(--eg-secondary);
}
@media (max-width: 1050px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1051px) {
  .mobile-menu { display: none !important; }
}

/* Main Hero & Features */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 680px) {
  section {
    padding: 30px 0;
    margin-bottom: 38px;
  }
}

/* Service Cards (Angebote) */
.service-card {
  background: linear-gradient(120deg, #FDF0F6 75%, #E0F0FF 100%);
  border-radius: 24px;
  box-shadow: var(--eg-shadow);
  padding: 30px 28px;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  min-width: 260px;
  max-width: 420px;
  border: 1.5px solid var(--eg-border);
  transition: box-shadow 0.17s, transform 0.18s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 8px 36px 0 rgba(31,200,160,0.09), var(--eg-shadow);
  transform: translateY(-3px) scale(1.02);
}
.service-card .price {
  font-family: var(--eg-font-display);
  color: var(--eg-secondary);
  font-size: 1.14rem;
  font-weight: 600;
}
.service-card a {
  background: var(--eg-primary);
  color: #fff;
  font-family: var(--eg-font-body);
  font-size: 1rem;
  border-radius: 22px;
  padding: 9px 28px;
  font-weight: 500;
  margin-top: 8px;
  transition: background .21s, transform .14s;
  box-shadow: 0 2px 8px rgba(22,70,124,0.08);
}
.service-card a:hover, .service-card a:focus {
  background: #1FC8A0;
  color: #fff;
  transform: scale(1.03);
}

/* Benefits block */
.benefits {
  background: var(--eg-mint);
  padding: 17px 20px;
  border-radius: 15px;
  box-shadow: var(--eg-shadow);
  margin-top: 16px;
}

/* Price badge */
.price {
  display: inline-block;
  background: var(--eg-yellow);
  color: var(--eg-primary);
  font-weight: 700;
  font-family: var(--eg-font-display);
  border-radius: 8px;
  padding: 6px 20px;
  margin-bottom: 10px;
  font-size: 1.04rem;
}

/* Footer */
footer {
  background: linear-gradient(92deg, #FCFBFF 70%, #EADDFB 100%);
  padding: 36px 0 10px 0;
  box-shadow: 0 -3px 16px rgba(31,200,160,0.06);
}
footer .container {
  flex-direction: column;
  gap: 34px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.footer-brand img {
  width: 48px;
  height: 48px;
}
.footer-brand span {
  font-family: var(--eg-font-display);
  color: var(--eg-primary);
  font-size: 1.08rem;
  font-weight: 600;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  color: var(--eg-primary);
  font-family: var(--eg-font-display);
  font-size: 1.04rem;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 8px;
  transition: color .14s, background .14s;
}
.footer-nav a:hover, .footer-nav a:focus { background: var(--eg-blue); color: var(--eg-secondary); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
  color: var(--eg-text-base);
  margin-top: 18px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--eg-text-base);
}
.footer-contact img {
  width: 20px;
  height: 20px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 12px;
}
.footer-legal a {
  color: var(--eg-secondary);
  font-size: 0.97rem;
  font-family: var(--eg-font-body);
  text-decoration: underline dotted;
  transition: color .15s;
}
.footer-legal a:hover, .footer-legal a:focus {
  color: var(--eg-primary);
}
.newsletter-signup {
  background: var(--eg-pink);
  padding: 18px 22px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  box-shadow: 0 2px 8px #fdf0f6bf;
  margin-top: 10px;
}
.newsletter-signup h3 {
  color: var(--eg-secondary);
  margin-bottom: 4px;
  font-size: 1.18rem;
}
.newsletter-signup a {
  background: var(--eg-secondary);
  color: #fff;
  border-radius: 22px;
  padding: 7px 20px;
  font-family: var(--eg-font-body);
  font-weight: 500;
  margin-top: 6px;
  font-size: 0.96rem;
  transition: background .18s;
}
.newsletter-signup a:hover, .newsletter-signup a:focus {
  background: var(--eg-primary);
  color: #fff;
}
@media (max-width: 700px) {
  footer .container {
    gap: 24px;
  }
  .footer-brand img { width: 38px; height: 38px; }
  .newsletter-signup { padding: 13px 10px; }
  .footer-nav, .footer-legal { gap: 8px; }
}

/* Cookie Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: linear-gradient(97deg, #FDF0F6 70%, #E7FAF3 100%);
  box-shadow: 0 -4px 24px rgba(22,70,124,0.06);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 22px 18px 20px 34px;
  z-index: 9999;
  font-family: var(--eg-font-body);
  font-size: 1rem;
  border-radius: 24px 24px 0 0;
  transition: transform 0.32s cubic-bezier(.65,.05,.36,.97), opacity .18s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  margin-left: 18px;
  flex-shrink: 0;
}
.cookie-banner button {
  font-family: var(--eg-font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 18px;
  background: var(--eg-primary);
  color: #fff;
  border: none;
  margin-right: 2px;
  transition: background 0.18s, box-shadow 0.18s;
}
.cookie-banner button.cookie-settings-btn {
  background: var(--eg-secondary);
  color: #fff;
}
.cookie-banner button.cookie-reject-btn {
  background: #C7D3DB;
  color: #2E3148;
  font-weight: 500;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #1FC8A0;
  color: #fff;
  box-shadow: 0 3px 14px 0 rgba(31,200,160,0.17);
}
.cookie-banner button.cookie-reject-btn:hover, .cookie-banner button.cookie-reject-btn:focus {
  background: #CD81B5;
  color: #fff;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 13px 18px 18px;
    gap: 17px;
  }
  .cookie-banner-buttons { margin-left: 0; gap: 10px; }
}
/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(22,70,124,0.13);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .21s, visibility 0s linear .21s;
}
.cookie-modal-overlay.open {
  visibility: visible;
  opacity: 1;
  transition: opacity .25s;
}
.cookie-modal {
  background: #fff;
  box-shadow: 0 7px 38px 0 rgba(22,70,124,0.11);
  border-radius: 22px;
  min-width: 325px;
  max-width: 95vw;
  padding: 34px 30px 26px 28px;
  position: relative;
  color: var(--eg-text-dark);
  font-family: var(--eg-font-body);
  animation: modalPopIn .21s cubic-bezier(.27,1,.67,1.15) 1;
}
@keyframes modalPopIn {
  0% {transform: scale(0.94) translateY(70px); opacity:0;}
  80% {transform: scale(1.04) translateY(-4px); }
  100% {transform: scale(1.0) translateY(0); opacity:1;}
}
.cookie-modal h2 {
  color: var(--eg-primary);
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-family: var(--eg-font-display);
  font-weight: 700;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}
.cookie-modal-category label {
  font-size: 1rem;
  color: var(--eg-primary);
  font-family: var(--eg-font-display);
  font-weight: 500;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CFEDE5;
  transition: .2s;
  border-radius: 15px;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2.5px;
  bottom: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: .23s;
  box-shadow: 0 1px 7px rgba(31,200,160,0.10);
}
.toggle-switch input:checked + .toggle-slider {
  background-color: var(--eg-secondary);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(19px);
  background: #FDF0F6;
}
.toggle-switch input:disabled + .toggle-slider {
  background-color: #E3EDF2;
  opacity: .85;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-modal button {
  font-family: var(--eg-font-display);
  font-size: 1rem;
  border-radius: 14px;
  padding: 7px 18px;
  transition: background .16s, color .14s;
  border: none; margin-right: 0;
}
.cookie-modal button.cookie-modal-save { background: var(--eg-primary); color: #fff; font-weight: 600; }
.cookie-modal button.cookie-modal-cancel { background: #F6F8FA; color: var(--eg-primary); font-weight: 500; }
.cookie-modal button:hover, .cookie-modal button:focus { background: var(--eg-secondary); color: #fff; }
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 18px; top: 18px;
  border: none;
  background: none;
  color: var(--eg-primary);
  font-size: 1.7rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 101;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus { color: var(--eg-secondary); }

@media (max-width: 540px) {
  .cookie-modal { min-width: 90vw; padding: 18px 6vw 18px 7vw; }
}

/* Micro-interactions & Effects */
.card, .service-card, .testimonial-card, .newsletter-signup, .benefits {
  transition: box-shadow .17s, transform .18s, background .17s;
}
.card:focus-within, .testimonial-card:focus-within, .newsletter-signup:focus-within, .benefits:focus-within {
  box-shadow: 0 5px 22px 0 rgba(31,200,160,0.07), var(--eg-shadow);
  background: var(--eg-blue);
}

/* Accessibility Focus Outlines */
a:focus-visible, .cta-btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--eg-secondary);
  outline-offset: 3px;
}

/* Misc Spacing Rules (Consistent Margin/Padding) */
.section>*:not(:last-child) { margin-bottom: 32px; }
.card-container>* { margin-bottom: 0; }
.content-wrapper>*:not(:last-child) { margin-bottom: 0; }

/* Text Section Specific */
.text-section {
  background: #fff;
  padding: 18px 23px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(22,70,124,0.03);
  margin-bottom: 8px;
}

/* Highlighted Info Block */
.brand-tagline {
  margin-top: 18px;
  font-size: 1.03rem;
  background: var(--eg-yellow);
  padding: 12px 18px;
  border-radius: 10px;
  font-family: var(--eg-font-display);
  font-weight: 600;
  color: var(--eg-primary);
}

/* Events & Programm */
.event-schedule {
  background: var(--eg-mint);
  padding: 12px 20px 10px 25px;
  border-radius: 12px;
  font-size: 1.02rem;
  margin-bottom: 19px;
}
.programmbeispiele ul {
  list-style: disc inside;
}

/* Accessibility: Force dark text in testimonials for contrast */
.testimonial-card p, .testimonial-card blockquote {
  color: #222A36 !important;
}

/* Scrollbar (subtle pastel) */
::-webkit-scrollbar {width:11px;background:var(--eg-bg);}
::-webkit-scrollbar-thumb {background: var(--eg-lavender); border-radius: 6px;}
::-webkit-scrollbar-thumb:hover {background: var(--eg-blue);}

/* Responsive Typography */
@media (max-width: 650px) {
  h1 {font-size:1.55rem;}
  h2 {font-size:1.19rem;}
  .container {padding: 0 3vw;}
  .service-card {padding: 18px 9px; max-width: 100%;}
}

/* Hide visually but keep accessible */
.visually-hidden { position:absolute;width:1px;height:1px;margin:-1px;border:0;padding:0;clip:rect(0 0 0 0);overflow:hidden; }
