/* 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 {box-sizing: border-box;}
ul,ol {list-style:none;}
a {text-decoration:none;color:inherit;}
img {max-width:100%;height:auto;display:block;}
button {background:none;border:0;font:inherit;cursor:pointer;}
input,button,textarea,select {font:inherit;}

/* ROOT & BRAND VARIABLES */
:root {
  --color-primary: #226644;
  --color-primary-rgb: 34,102,68;
  --color-secondary: #89C2B0;
  --color-accent: #F5F1EA;
  --color-action: #F34B3F;
  --color-yellow: #FFC83D;
  --color-blue: #23A8F2;
  --color-pink: #FD76A1;
  --color-neutral-light: #fff;
  --shadow-card: 0 4px 16px rgba(34, 102, 68, 0.08), 0 1.5px 8px rgba(70, 118, 137, 0.09);

  --font-display: 'Montserrat', 'Comic Sans MS', 'Comic Neue', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  --font-body: 'Open Sans', 'Comic Sans MS', Arial, sans-serif;

  --radius-base: 20px;
  --radius-small: 13px;
  --transition-fast: 150ms cubic-bezier(.57,1.15,.85,1.06);
}

body {
  font-family: var(--font-body);
  color: #18382A;
  background: var(--color-accent);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* HEADER STYLES */
header {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 0;
  box-shadow: 0 2px 8px rgba(34,102,68,0.09);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}
header a img {
  height: 54px;
  max-width: 155px;
  margin-right: 10px;
  transition: transform .12s ease;
}
header a img:hover {transform: scale(1.09) rotate(-2deg);}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-accent);
  padding: 6px 17px 7px 17px;
  border-radius: var(--radius-small);
  transition: background .17s, color .16s, box-shadow .18s, transform .15s;
}
header nav a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(137,194,176,0.17);
  transform: scale(1.09) skew(-2deg);
}
.cta-primary {
  font-family: var(--font-display);
  background: var(--color-yellow);
  color: var(--color-primary);
  padding: 11px 30px 10px 30px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 80px;
  border: 2.5px solid var(--color-primary);
  box-shadow: 0 6px 30px rgba(255,200,61,0.14), 0 1.5px 11px rgba(137,194,176,0.10);
  margin-left: 18px;
  position: relative;
  transition: transform .14s,var(--transition-fast), box-shadow .19s;
  letter-spacing: 0.04em;
  display: inline-block;
  text-shadow: 0 2px 6px #fff;
}
.cta-primary:active {transform: scale(0.98);}
.cta-primary:hover {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
  box-shadow: 0 4px 18px rgba(35,168,242,.22);
  transform: scale(1.06) rotate(1deg);
}
header .cta-primary {margin: 0 0 0 30px;}

/* MOBILE HEADER BUTTONS */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 19px;
  z-index: 101;
  background: var(--color-yellow);
  color: var(--color-primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 32px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(255,200,61,0.13);
  transition: background .15s,transform .09s;
  border: 3px solid var(--color-primary);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {background: var(--color-blue);color:#fff;outline: none;}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--color-accent);
  z-index: 105;
  padding: 0 0 0 0;
  transform: translateX(-110%);
  transition: transform 0.33s cubic-bezier(.7,1.16,.68,0.97);
  box-shadow: 0 0 30px rgba(34,102,68,0.14);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 39px;
  align-self: flex-end;
  margin: 23px 22px 10px 0;
  color: var(--color-primary);
  background: var(--color-yellow);
  border-radius: 50%;
  width: 44px;height: 44px;
  display: flex;align-items: center;justify-content: center;
  border: 2px solid var(--color-primary);
  transition: background .15s;
}
.mobile-menu-close:active {background: var(--color-blue);color:#fff;}

.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 32px;
  margin-top: 20px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.35rem;
  padding: 10px 0 10px 18px;
  border-radius: var(--radius-base);
  background: var(--color-secondary);
  margin-right: 26px;
  box-shadow:0 2px 12px rgba(137,194,176,0.15);
  margin-bottom: 0;
  transition: background .14s, color .11s, transform .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-yellow);
  color: var(--color-blue);
  transform: scale(1.05);
}


@media (max-width: 990px) {
  header .container nav, header .cta-primary { display: none;}
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 990px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* MAIN LAYOUT SPACING & FLEX PATTERNS */
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-neutral-light);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  position: relative;
}

@media (max-width: 768px) {
  .section {padding: 25px 10px; margin-bottom: 40px;}
}

/* Content Grid & Card Patterns */
.card-container, .feature-grid, .story-list, .stories-list, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 0;
}
.card {
  background: var(--color-secondary);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 210px;
  flex: 1 1 272px;
  z-index: 1;
  transition: transform .15s,box-shadow .18s;
}
.card:hover {transform:scale(1.04) rotate(-2deg);box-shadow:0 8px 32px rgba(35,168,242,0.13);}

.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;gap: 18px;}
  .content-grid,.card-container,.feature-grid,.stories-list,.card-grid {gap:19px}
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #222;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(137,194,176,0.16),0 1.5px 8px rgba(34,102,68,0.11);
  padding: 20px 28px 19px 23px;
  margin-bottom: 20px;
  margin-top: 7px;
  position: relative;
}
.testimonial-card p {
  font-size: 19px;
  font-weight: bold;
  font-style: italic;
}
.testimonial-card span {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.02em;
  align-self: flex-end;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-secondary);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: 20px 16px;
  margin-bottom: 20px;
}

/* Feature Icon Styles */
.feature-grid > div, .feature-item, .stories-list > div {
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: 23px 19px 20px 18px;
  min-width: 210px;
  flex: 1 1 272px;
  transition:transform .17s,box-shadow .16s;
  margin-bottom: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.feature-grid > div:hover, .stories-list > div:hover {
  transform:scale(1.045) rotate(-1deg);
  box-shadow: 0 6px 24px rgba(35,168,242,0.13);
}
.feature-grid img {
  width: 44px;height:44px;margin-bottom:13px;}

/* Fun Accent Circles (decor only, non-content!) */
.feature-grid > div::before {
  content: "";
  display: block;
  position: absolute;
  right: -15px; top: -15px;
  background: var(--color-yellow);
  width: 37px; height: 37px;
  border-radius: 50%;
  z-index: 0;
  opacity:.18;
}
.stories-list > div::after {
  content: "";
  display: block;
  position: absolute;
  left: -13px;bottom:-18px;
  background: var(--color-blue);
  width: 31px;height:31px;border-radius:50%;z-index:0;opacity:.12;
}

/*-------- TYPOGRAPHY --------*/
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.16;
  margin-bottom: 13px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.6rem;
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--color-blue);
  text-shadow: 0 3px 15px #f5f1ea9a;
}
h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  color: var(--color-pink);
}
ul li {
  margin-bottom: 10px;
  font-size: 16.5px;
}
strong {color:var(--color-primary);font-weight: bold;}

p {
  font-size: 17.5px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  color: #2a433a;
}
.content-wrapper, .content-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 570px){
  h1{font-size:2rem;}
  h2{font-size:1.3rem;}
}

/* List Spacing */
ul,ol {
  margin-left: 24px;
  margin-bottom: 8px;
}
ul li, ol li {
  list-style: disc inside;
}

/* ACCENTUATED LINKS */
a {
  transition: color .12s linear, text-decoration 0.16s;
  border-radius: 7px;
}
a:focus {outline: 2px solid var(--color-blue);box-shadow:0 0 0 4px #23a8f236;}
a.underline, .footer-contact a {
  text-decoration: underline;
  color: var(--color-blue);
}

/* Buttons */
.button, .cta-primary, .cookie-btn {
  font-family: var(--font-display);
  padding: 12px 28px;
  border: 0;
  border-radius: 80px;
  font-weight: 700;
  font-size: 18px;
  background: var(--color-yellow);
  color: var(--color-primary);
  box-shadow: 0 4px 13px rgba(255,200,61,0.07);
  cursor: pointer;
  transition: background .13s, color .14s, transform .13s, box-shadow .13s;
  margin:6px 16px 6px 0;
  letter-spacing:0.04em;
}
.button:hover, .cookie-btn:hover {background: var(--color-blue);color:#fff;box-shadow:0 3px 22px rgba(35,168,242,0.14);}
.button:active, .cookie-btn:active {transform: scale(0.98);}

/* Secondary Button */
.button-secondary,.cookie-btn--settings {
  background: var(--color-pink);
  color: #fff;
  border: 2px solid var(--color-pink);
  font-weight: 700;
}
.button-secondary:hover,.cookie-btn--settings:hover {background: var(--color-yellow);color:var(--color-primary);border-color:var(--color-yellow);}

.button-outline,.cookie-btn--outline {
  background: #fff;
  color: var(--color-blue);
  border: 2.5px solid var(--color-blue);
}
.button-outline:hover, .cookie-btn--outline:hover {background: var(--color-blue);color:#fff;}

/*-------- FOOTER --------*/
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 44px 0 16px 0;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -2px 22px rgba(137,194,176,0.12);
}
footer .container {
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 7px;
}
footer nav a {
  color: var(--color-accent);
  font-size: 15.5px;
  padding: 3px 12px;
  border-radius: var(--radius-small);
  background: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  margin-right: 4px;
  transition: background .13s, color .13s, transform .13s;
}
footer nav a:hover { background: var(--color-yellow); color: var(--color-primary);transform:scale(1.08);}

.footer-contact {
  font-size: 15px;
  color: #d9efe2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-contact p {margin-bottom: 3px;}

/*---------- COOKIE BANNER ----------*/
.cookie-banner {
  position: none !important;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 0 23px 4px rgba(34,102,68,0.09);
  border-radius: 22px 22px 0 0;
  z-index: 250;
  width: 94vw;
  max-width: 520px;
  padding: 22px 22px 19px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-size:1.1em;
  transition:transform .51s cubic-bezier(.7,1.16,.75,.94),opacity .17s;
  opacity:.95;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0px);
  opacity:1;
}
.cookie-banner p {
  color: var(--color-primary);
  margin-bottom: 9px;
  font-size: 1em;
}
.cookie-banner .cookie-btn {
  margin-top: 7px;
}

/* Cookie Preference Modal */
.cookie-modal {
  position: fixed;
  z-index: 280;
  left: 50%; top: 50%;
  transform: translate(-50%,-45%) scale(0.95);
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-base);
  box-shadow: 0 0 39px 8px rgba(35,168,242,.13);
  padding: 36px 32px 29px 32px;
  min-width: 270px;
  max-width: 455px;
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: none;
}
.cookie-modal.open {
  display: flex;
  animation: popupIn .34s cubic-bezier(.79,1.44,.4,.94);
}
@keyframes popupIn { 0% {transform:scale(0.84) translate(-50%,-45%);opacity:0;} 100%{transform:scale(1) translate(-50%,-50%);opacity:1;}}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.4em;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cookie-category label {
  font-size: 1.1em;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 17px; height: 17px;
}
.cookie-modal .cookie-btn {margin-top: 1px;}
.cookie-modal .cookie-btn--outline {margin-left:12px;}
.cookie-modal .close-modal {
  position: absolute;
  right: 14px; top: 14px;
  background: var(--color-yellow);
  color: var(--color-primary);
  border-radius: 50%;
  width: 39px;height:39px;
  font-size: 30px;
  display: flex; align-items: center;justify-content: center;
  border: 2px solid var(--color-primary);
}

/*------ UTILITY CLASSES ------*/
.text-center {text-align:center;}
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.gap-20 {gap: 20px;}
.rounded { border-radius: var(--radius-base); }
.bg-primary { background: var(--color-primary); color: #fff; }
.bg-accent { background: var(--color-accent);}
.bg-blue { background: var(--color-blue); color: #fff;}

/*------ FUN ANIMATIONS (e.g. accent elements, icons) ------*/
@keyframes hop {
  0% {transform: translateY(0);}
  40% {transform: translateY(-12px) scale(1.15) rotate(-2deg);}
  100% {transform: translateY(0);}
}
.feature-grid > div:hover img {
  animation: hop .55s 1 linear;
}

@keyframes wiggle {
  0%,100%{transform:rotate(0deg);}20%{transform:rotate(-6deg);}40%{transform:rotate(8deg);}60%{transform:rotate(-9deg);}80%{transform:rotate(7deg);}}
header img:hover {animation:wiggle .37s 1;}

@keyframes pulse {
  0%{box-shadow:0 0 0 0 rgba(255,200,61,0.29)}100%{box-shadow:0 0 0 18px rgba(255,200,61,0)} }
.cta-primary:hover {animation:pulse .66s 1;}

.testimonial-card {
  transition: box-shadow .19s,transform .18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(35,168,242,0.14);
  transform:scale(1.04) skew(-1.8deg);
}

/*------------ RESPONSIVE RULES ------------*/
@media (max-width: 870px) {
  header .container {
    flex-direction: row;
    gap: 8px;
    padding-right: 55px;
  }
}
@media (max-width: 700px) {
  .container {padding: 0 4.5vw;}
  .feature-grid>div, .card, .stories-list>div,.feature-item {
    flex-basis:100%;min-width: 0;
  }
  footer nav {gap: 8px;}
}
@media (max-width: 550px) {
  .cookie-banner {padding: 15px 3vw 10px 15px;}
  .cookie-modal {padding:16px 6vw 22px 3vw;}
  header .container a img {height:37px;max-width:110px;}
  h1 {font-size:1.27rem;margin-bottom:7px;}
  h2{font-size:1.1rem}
  .testimonial-card{padding:12px 12px 9px 11px;}
}


/*-------- FORMS --------*/
input[type="text"],input[type="email"],textarea {
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-small);
  padding: 9px 16px;
  margin-bottom: 16px;
  width: 100%;
  font-size: 1em;
  background: #fff;
  color: var(--color-primary);
  transition: border .15s;
}
input:focus,textarea:focus {
  border-color: var(--color-blue);
  outline: none;
}

/****** ICONS IN LISTS on Kontakt page ******/
section ul li img {
  width: 22px; height:22px;
  margin-right: 10px;
  transform: translateY(4px) scale(1.15);
  display:inline;
}
section ul li {display: flex;align-items:center;gap:7px;}


/* Misc */
::-webkit-scrollbar {width:8px;height:8px;background:var(--color-accent);}
::-webkit-scrollbar-thumb {background:var(--color-secondary);border-radius:9px;}

/* Accessibility: skip link off-canvas */
.skip-link {position:absolute;left:-1000px;top:auto;width:1px;overflow:hidden;z-index:999;}
.skip-link:focus {position:static;width:auto;left:auto;top:auto;background:var(--color-yellow);color:var(--color-primary);padding:10px;display:block;}
