/* === 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,
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: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; }
ol, ul { list-style:none; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; height:auto; display:block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* === CSS VARIABLES FOR PLAYFUL DYNAMIC === */
:root {
  --color-primary: #263640;
  --color-secondary: #57A96C;
  --color-accent: #F6EAC2;
  --color-bright1: #FFD447;
  --color-bright2: #69D6E8;
  --color-bright3: #FF70A6;
  --color-white: #fff;
  --color-black: #222;
  --color-grey: #D8E0E5;
  --text-dark: #263640;
  --text-mid: #4C5964;
  --text-light: #fff;
  --shadow-main: 0 6px 24px 0 rgba(30,60,45,0.10), 0 2px 6px 0 rgba(30,60,45,0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --transition: all 0.28s cubic-bezier(.7,.3,.3,1);

  --font-display: 'Ubuntu', 'Open Sans', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-fun: 'Fredoka', 'Comic Neue', cursive, sans-serif;
  --headline-size: 2.3rem;
  --headline-size-md: 1.67rem;
  --subheadline-size: 1.17rem;
  --base-size: 1rem;
}

@media (min-width: 900px) { :root { --headline-size: 3.5rem; --headline-size-md: 2.1rem; --subheadline-size:1.35rem; } }

/* === BASE === */
body {
  background: var(--color-accent);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 700;
}
h1 { font-size: var(--headline-size); line-height: 1.05; }
h2 { font-size: var(--headline-size-md); line-height: 1.2; }
h3 { font-size: 1.3rem; margin-bottom: 8px; font-family: var(--font-fun); }
h4, h5, h6 { font-size: 1.08rem; font-family: var(--font-fun); }
p, ul, label, .subheadline { font-size: var(--base-size); }
p, ul, ol, .subheadline { color: var(--text-mid); line-height:1.6; }
.subheadline { font-size: var(--subheadline-size); font-family: var(--font-fun); color: var(--color-secondary); margin-bottom: 18px; font-weight: 500; }
strong { color: var(--color-primary); font-weight: 700; }
a { color: var(--color-secondary); }
a:hover { color: var(--color-bright2);}

/* === SPACING & SECTION PATTERNS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  position: relative;
}

/* === FLEX LAYOUTS (NO GRID) === */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-width: 260px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 10px 40px 0 rgba(39,166,108,0.13), 0 2px 8px 0 rgba(30,60,45,0.10);
  transform: translateY(-5px) scale(1.025) rotate(-2deg);
  z-index:2;
}
.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(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 16px 0 rgba(87,169,108,0.08);
  margin-bottom:20px;
  min-width: 220px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(103,214,232,0.14);
  transform: translateY(-6px) scale(1.02) rotate(1deg);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Dedicated Spacing Rules */
.card, .testimonial-card, .feature-item, .section, .content-wrapper, .category-list li, .popular-articles ul li, .service-list li { margin-bottom: 20px; }
.section > .container { margin-bottom: 0; }

/* === NAVIGATION & HEADER === */
header {
  background: var(--color-bright1);
  box-shadow: var(--shadow-main);
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  position: relative;
  z-index:10;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
header nav ul {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
header nav li {margin: 0;}
header nav a {
  font-family: var(--font-fun);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-primary);
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
header nav a:hover, .footer-nav a:hover {
  background: var(--color-bright2);
  color:var(--color-bright3);
  transform: scale(1.08) rotate(-2deg);
}
.cta-btn {
  background: var(--color-secondary);
  color: var(--color-white)!important;
  font-family: var(--font-fun);
  font-size: 1.09rem;
  font-weight:700;
  border: none;
  padding: 0.7em 1.8em;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(39,166,108,0.09);
  margin-top: 8px;
  display: inline-block;
  outline: none;
  transition: background var(--transition), transform var(--transition);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-bright1);
  color:var(--color-secondary)!important;
  transform: scale(1.06) rotate(2deg);
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  margin-left: 12px;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 4px 14px 4px 4px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  display: none;
  z-index: 60;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-bright2);
  color: var(--color-secondary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;bottom:0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: 0 8px 40px 0 rgba(39,166,108,0.13);
  z-index:90;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 36px;
  padding-left: 0;
  padding-right:0;
  transition: transform 0.34s cubic-bezier(.7,.3,.6,1);
  transform: translateX(-105vw);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute;
  top: 18px; right: 25px;
  background: none;
  border: none;
  font-size: 2.15rem;
  color: var(--color-secondary);
  cursor: pointer;
  border-radius: var(--radius);
  z-index:91;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-bright1);
  color: var(--color-bright3);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 60px 24px 24px 32px;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.23rem;
  font-family: var(--font-fun);
  padding: 12px 8px 12px 0;
  border-radius: var(--radius);
  width: 100%;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-bright2);
  color: var(--color-secondary);
  transform: scale(1.03) rotate(-1deg);
}


/* Hide Desktop Nav On Mobile, Show Burger */
@media (max-width: 920px){
  header nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

@media (min-width: 921px){
  .mobile-menu { display:none!important; }
}

/* === MAIN SECTIONS === */
section {
  margin-bottom: 60px;
  padding: 40px 0 36px 0;
}

/* Category Lists & Article Lists */
.category-list, .service-list, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.category-list li, .service-list li, .feature-grid li {
  background: var(--color-bright2);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  font-family: var(--font-fun);
  font-size: 1.07rem;
  min-width: 200px;
  max-width: 320px;
  box-shadow: 0 2px 12px 0 rgba(255,112,166,0.09);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.category-list li:hover, .service-list li:hover, .feature-grid li:hover {
  background: var(--color-bright1);
  box-shadow: 0 10px 28px 0 rgba(87,169,108,0.10), 0 2px 10px 0 rgba(255,112,166,0.12);
  transform: scale(1.025) rotate(1deg);
  z-index:1;
}
.service-list li {
  background: var(--color-bright1);
  color: var(--color-primary);
  font-size: 1.01rem;
  font-family: var(--font-fun);
  max-width: 350px;
}
.service-price {
  display: inline-block;
  margin-top: 7px;
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-fun);
  font-weight:500;
  font-size: 1.0rem;
  border-radius: var(--radius-pill);
  padding: 5px 18px;
}

/* Popular Articles */
.popular-articles h3 { margin-bottom: 7px; color: var(--color-secondary); font-family: var(--font-fun);}
.popular-articles ul,
.next-steps ul { display: flex; flex-direction: column; gap:12px; }
.popular-articles ul li a {
  color: var(--color-bright3);
  background: var(--color-bright2);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 1.05rem;
  transition: background var(--transition), color var(--transition);
}
.popular-articles ul li a:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* === TESTIMONIALS === */
.testimonial-card {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 3px 16px 0 rgba(103,214,232,0.09);
  font-family: var(--font-fun);
  border-left: 8px solid var(--color-bright3);
  position:relative;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: var(--color-primary);
  margin-bottom: 3px;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 1rem;
}

@media (max-width: 810px) {
  .testimonial-card {flex-direction: column; }
}
/* === TEXT SECTIONS === */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.06rem;
  color: var(--color-mid);
}
.text-section ul {
  margin-bottom: 12px;
  list-style: circle inside;
  color: var(--color-primary);
  font-family: var(--font-fun);
  gap: 8px;
}
.text-section li {margin-bottom: 10px;}

/* === FOOTER === */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 40px 0 38px 0;
  margin-top: 40px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: var(--font-fun);
  font-size: 1.04rem;
  padding: 7px 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.footer-nav a:hover {
  color: var(--color-bright2);
  background: var(--color-bright1);
  transform: rotate(-2deg) scale(1.03);
}
.impressum {
  color: var(--color-accent);
  font-size: 0.98rem;
  margin-bottom: 12px;
}
.social-media {
  display: flex;
  align-items: center;
  gap: 16px;
}
.social-media a img {
  width: 36px;
  height: 36px;
  background: var(--color-white);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 1px 6px 0 rgba(255,112,166,0.13);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.social-media a:hover img {
  background: var(--color-bright3);
  transform: scale(1.15) rotate(-5deg);
}

@media (max-width: 880px) {
  .footer-content {
    flex-direction: column;
    gap: 36px;
    align-items: flex-start;
  }
}

/* === BUTTONS === */
button, .cta-btn {
  font-family: var(--font-fun);
  cursor: pointer;
  outline: none;
}
button:active, .cta-btn:active { transform: scale(0.96); }

/* === ANIMATIONS & MICRO-INTERACTIONS === */
.card, .testimonial-card, .feature-item, .cta-btn, .mobile-menu, .mobile-nav a,
.category-list li, .service-list li, .footer-nav a, .social-media a img {
  transition: var(--transition);
}

/* Fun swinging animation for playful vibe */
@keyframes swing-in {
  0% { transform: rotate(-5deg) scale(0.98) translateY(18px); opacity: 0; }
  80% { transform: rotate(2deg) scale(1.03) translateY(-2px); opacity:1; }
  100% { transform: none; opacity:1; }
}
.section, .card, .testimonial-card, .category-list li, .service-list li { animation: swing-in 1s cubic-bezier(.6,.3,.5,1) both; }

/* Overlay fade animation (for modal/cookie banner) */
@keyframes fadeInUp {
  0%{ opacity:0; transform:translateY(32px);} 100%{ opacity:1; transform:none; }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .container { padding: 0 7px; }
  .section { padding: 22px 5px; margin-bottom: 36px; }
  .content-wrapper, .footer-content { gap: 20px; }
  .content-grid, .category-list, .feature-grid, .service-list, .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    min-width: 0;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.42rem; }
  h3 { font-size: 1.07rem; }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform:translateX(-50%);
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 24px 0 rgba(255,112,166,0.18);
  border-radius: var(--radius-pill);
  padding: 18px 30px 18px 26px;
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeInUp 0.5s ease 0s 1 both;
  font-family: var(--font-body);
  max-width: 95vw;
  min-width:200px;
}
.cookie-banner p {
  font-size:1.06rem;
  margin:0 10px 0 0;
  color: var(--color-primary);
}
.cookie-banner .cookie-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 22px;
  margin: 0 4px;
  font-family: var(--font-fun);
  font-size:1rem;
  font-weight: 500;
  cursor:pointer;
  transition: var(--transition);
  box-shadow: 0 1px 10px 0 rgba(87,169,108,0.10);
}
.cookie-banner .cookie-btn.reject {
  background: var(--color-bright3);
  color: var(--color-white);
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-bright2);
  color: var(--color-primary);
}
.cookie-banner .cookie-btn:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}

@media (max-width:600px) {
  .cookie-banner {flex-direction:column; align-items: flex-start; gap: 10px; font-size:0.97rem; padding: 13px 8px;}
  .cookie-banner .cookie-btn {margin-bottom: 4px;}
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: rgba(38,54,64,0.51);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.42s cubic-bezier(.6,.3,.5,1) both;
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius);
  box-shadow: 0 8px 48px 0 rgba(87,169,108,0.21);
  min-width: 290px;
  max-width: 93vw;
  padding: 36px 34px 24px 34px;
  animation: fadeInUp 0.51s cubic-bezier(.6,.3,.5,1) both;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-body);
  position: relative;
}
.cookie-modal h2 {
  font-family: var(--font-fun);
  color: var(--color-secondary);
  font-size: 1.28rem;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-bright3);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  border-radius: var(--radius-sm);
}
.cookie-modal .close-modal:hover { color: var(--color-primary); background: var(--color-accent); }
.cookie-categories {
  display:flex;
  flex-direction:column;
  gap:11px;
  margin:14px 0 8px 0;
}
.cookie-category {
  display: flex;
  align-items:center;
  gap:14px;
}
.cookie-category label {
  font-family: var(--font-fun); color: var(--color-primary); font-size:1.04rem;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-secondary);
  width: 22px;
  height: 22px;
  cursor:pointer;
}
.cookie-category[data-locked] label {
  color: #aaa;
}
.cookie-category[data-locked] input { pointer-events:none; }
.cookie-modal .cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-modal .cookie-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 20px;
  font-family: var(--font-fun);
  font-size:1rem;
  font-weight:500;
  cursor:pointer;
  transition: var(--transition);
}
.cookie-modal .cookie-btn.reject {
  background: var(--color-bright3);
}
.cookie-modal .cookie-btn.settings {
  background: var(--color-bright2);
  color: var(--color-primary);
}
.cookie-modal .cookie-btn:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}

@media (max-width:430px){
 .cookie-modal {padding: 19px 4px 15px 8px; min-width:220px;}
}

/* === ADDITIONAL STYLES === */
::-webkit-scrollbar { width: 10px; background: var(--color-accent); }
::-webkit-scrollbar-thumb { background: var(--color-bright2); border-radius: 5px; border:3px solid var(--color-accent); }

hr {
  border:0; border-top:2px solid var(--color-bright2); margin:24px 0;
}

/* === ACCESSIBILITY === */
:focus-visible { outline: 2px solid var(--color-bright2); outline-offset: 2px; }

/* === UTILITIES === */
.mt-32 {margin-top:32px!important;}
.mb-32 {margin-bottom:32px!important;}
.mt-16 {margin-top:16px!important;}
.mb-16 {margin-bottom:16px!important;}

/* === THANK YOU PAGE NEXT-STEPS === */
.next-steps ul { padding-left: 18px; }
.next-steps li {list-style: disc inside; color: var(--color-primary); margin-bottom: 6px; font-family: var(--font-fun);}

/* === END === */
