/* --- 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F1FAEE;
  color: #212121;
  font-family: 'Roboto', Arial, sans-serif;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- FONT IMPORTS (Google Fonts) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

/* --- BRAND COLORS --- */
:root {
  --primary: #1D3557;
  --secondary: #A8DADC;
  --accent: #F1FAEE;
  --highlight: #FFE066;
  --fun-pink: #FF38A7;
  --fun-orange: #FFB031;
  --fun-green: #3DF2A4;
  --info-blue: #43B5E5;
  --dark: #212121;
  --text-contrast: #212121;
  --card-shadow: 0 4px 16px rgba(30, 32, 46, 0.18);
  --border-radius: 18px;
  --focus: 0 0 0 3px #FFB031;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  min-width: 260px;
  max-width: 700px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 24px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: transform 0.18s cubic-bezier(.48,1.64,.41,.8), box-shadow 0.18s;
}
.card:hover,
.card:focus-within {
  transform: translateY(-6px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 28px rgba(30,32,46,0.24);
}
.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;
  padding: 20px;
  background: #FFF;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(30, 32, 46, 0.1);
  margin-bottom: 24px;
  max-width: 530px;
  border-left: 8px solid var(--secondary);
  transition: box-shadow 0.19s, border-color 0.25s;
  position: relative;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  border-color: var(--fun-orange);
  box-shadow: 0 6px 32px rgba(30,32,46,0.17);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TYPOGRAPHY SCALE & PLAYFUL DYNAMIC STYLES --- */
h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.5rem;
  line-height: 1.13;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -1.5px;
  text-shadow: 1px 2px 2px var(--secondary), 0 1px 0 var(--fun-orange);
  animation: bounce-text 1s .1s cubic-bezier(.68,-0.55,.27,1.55) both;
}
@keyframes bounce-text {
  0% { transform: scale(.96) translateY(-12px) rotate(-3deg); opacity:0.75; }
  80% { transform: scale(1.03) translateY(4px) rotate(1deg); opacity:1; }
  100% { transform: scale(1) translateY(0) rotate(0); }
}
h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--fun-pink);
  margin-bottom: 14px;
  letter-spacing: -1px;
  position: relative;
}
h2:after {
  content: '';
  display: block;
  width: 44px;
  height: 6px;
  border-radius: 3px;
  background: var(--fun-orange);
  margin: 12px 0 0 0;
}
h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--info-blue);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: bold;
  color: var(--primary);
}
p, li, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--dark);
  margin-bottom: 10px;
}
blockquote {
  font-family: 'Montserrat', cursive, sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--fun-pink);
  background: var(--accent);
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(67,181,229,0.06);
  margin: 0 0 6px 0;
  position: relative;
  z-index: 1;
}
blockquote:before {
  content: '\201C';
  font-size: 2rem;
  font-family: 'Montserrat', cursive, sans-serif;
  color: var(--fun-orange);
  position: absolute;
  left: -18px;
  top: 8px;
  z-index: 2;
}
strong, b {
  color: var(--primary);
  font-weight: 700;
}
.summary-stats p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

/* --- BUTTONS & CALL TO ACTIONS --- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fun-orange);
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  border: none;
  border-radius: 32px;
  padding: 14px 36px;
  box-shadow: var(--card-shadow);
  margin-top: 8px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  transition: background .19s, color .17s, transform .14s, box-shadow .14s;
  cursor: pointer;
  outline: none;
  animation: pop-btn .28s .3s cubic-bezier(.68, -0.6, .41, 1.51) both;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--fun-pink);
  color: #fff;
  transform: scale(1.03) translateY(-4px) rotate(-2deg);
  box-shadow: 0 6px 32px rgba(30,32,46,0.18);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 32px;
  padding: 11px 28px;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 1px 6px rgba(67,181,229,0.10);
  transition: background .19s, color .16s, transform .13s, box-shadow .13s;
  outline: none;
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: var(--fun-green);
  color: var(--primary);
  transform: scale(1.04) translateY(-2px) rotate(1deg);
  box-shadow: 0 6px 22px rgba(67,181,229,0.10);
}

/* --- INTERACTIVE / LINK STYLES --- */
a {
  transition: color 0.2s, text-shadow 0.13s;
}
a:hover { color: var(--fun-pink); text-shadow: 0 1px 8px var(--secondary, #a8dadc65); }
.footer-nav a:hover { color: var(--fun-green); }

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 2px solid var(--secondary);
  width: 100%;
  z-index: 1002;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  min-height: 64px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  padding: 7px 14px;
  border-radius: 20px;
  transition: background .19s, color .19s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--fun-green);
  color: var(--fun-pink);
}
.main-nav .cta-primary {
  background: var(--fun-pink);
  color: #fff;
  font-size: 1rem;
  margin: 0;
  padding: 8px 16px;
  font-weight: 900;
}
.main-nav .cta-primary:hover,
.main-nav .cta-primary:focus {
  background: var(--fun-orange);
  color: var(--primary);
}
.mobile-menu-toggle {
  display: none;
  background: var(--fun-pink);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 100vw;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  z-index: 1022;
  transition: background .2s, box-shadow .2s;
  border: none;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--fun-orange);
  box-shadow: 0 0 0 3px var(--secondary);
}

/* --- MOBILE NAVIGATION & OVERLAY --- */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(255, 248, 237, 0.96);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 34px 26px;
  transform: translateX(-105%);
  transition: transform .36s cubic-bezier(.48,1.64,.41,.8);
  box-shadow: 4px 0 36px rgba(30, 32, 46, 0.14);
}
.mobile-menu.show {
  transform: translateX(0);
  transition: transform .38s cubic-bezier(.68,-0.6,.32,1.51);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--fun-orange);
  color: var(--primary);
  font-size: 2rem;
  padding: 6px 16px 6px 16px;
  border-radius: 28px;
  margin-bottom: 22px;
  border: none;
  box-shadow: 0 1px 5px rgba(67,181,229,0.06);
  transition: background .17s, color .17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--fun-pink);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.17rem;
  font-weight: 900;
  color: var(--primary);
  padding: 13px 0 13px 0;
  border-radius: 18px;
  background: none;
  text-align: left;
  width: 100%;
  transition: background .16s, color .14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--fun-green);
  background: var(--secondary);
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 2px solid var(--secondary);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 46px 0 16px 0;
}
.footer-top img {
  height: 44px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.footer-nav a {
  font-size: 1rem;
  color: var(--primary);
  transition: color 0.17s;
}
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.social-links img {
  height: 30px;
  width: 30px;
  background: #fff;
  border-radius: 18px;
  padding: 3px;
  box-shadow: 0 1px 6px rgba(67,181,229,0.10);
  transition: box-shadow .18s, transform .17s;
}
.social-links a:hover img {
  box-shadow: 0 2px 19px rgba(255,56,167,0.23);
  transform: translateY(-5px) scale(1.1) rotate(-2deg);
}
.footer-bottom {
  font-size: 0.98rem;
  color: var(--info-blue);
  background: var(--accent);
  text-align: center;
  padding: 16px 0 12px 0;
}

/* --- CARDS & FEATURES --- */
.features-grid > div,
.service-cards > div {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 20px 20px 22px 20px;
  min-width: 240px;
  max-width: 350px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.19s, box-shadow 0.19s;
  margin-bottom: 20px;
  z-index: 1;
  position: relative;
  border-left: 6px solid var(--secondary);
}
.features-grid > div:hover,
.service-cards > div:hover {
  transform: translateY(-5px) scale(1.04) rotate(-2deg);
  box-shadow: 0 10px 36px rgba(30,32,46,0.18);
  border-left: 6px solid var(--fun-pink);
}
.features-grid img,
.service-cards img {
  height: 40px;
  width: 40px;
  margin-bottom: 10px;
}

/* --- LIST & TABLE STYLES --- */
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 14px;
}
ul li, ol li {
  margin-bottom: 7px;
  line-height: 1.5;
}
ul > li {
  position: relative;
  padding-left: 25px;
}
ul > li:before {
  content: '\25CF';
  position: absolute;
  left: 0;
  color: var(--fun-orange);
  font-size: 1.1em;
  top: 2px;
}

/* --- SECTION & SPACING --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
  position: relative;
}
section:last-child {
  margin-bottom: 0;
}

/* --- ANIMATION & MICROINTERACTIONS --- */
@keyframes pop-btn {
  0% { transform: scale(.98) rotate(-4deg); }
  40% { transform: scale(1.1) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
.testimonial-card {
  animation: fadeInUp .7s cubic-bezier(.55,1.35,.53,1) both;
}
.features-grid > div, .service-cards > div {
  animation: fadeInUp .75s cubic-bezier(.6,1.35,.52,1.03) both;
}
.cta-primary, .cta-secondary { animation: pop-btn .24s .31s both; }

/* --- TESTIMONIAL STYLING & CONTRAST --- */
.testimonial-card {
  background: #FFF;
  color: #212121;
  border-left: 8px solid var(--secondary);
  box-shadow: 0 4px 16px rgba(30,32,46,0.10);
}
.testimonial-card blockquote,
.testimonial-card p {
  color: var(--primary);
  background: none;
  font-family: 'Montserrat', cursive, sans-serif;
}

/* --- SUMMARY STATS --- */
.summary-stats {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 18px;
  padding: 16px 24px;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 18px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 2500;
  background: #fff9e8;
  box-shadow: 0 -2px 22px rgba(30,32,46,0.18);
  border-top: 3px solid var(--fun-orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 32px 20px 32px;
  gap: 24px;
  font-size: 1rem;
  animation: fadeInUp .41s .05s both;
}
.cookie-banner p {
  color: var(--dark);
  font-size: 1.02rem;
  flex: 1 1 auto;
  margin-bottom: 0;
  margin-right: 10px;
}

.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-right: 3px;
  border: none;
  transition: background .18s, color .19s, transform .12s;
  box-shadow: 0 1px 8px rgba(67,181,229,0.06);
}
.cookie-btn.accept {
  background: var(--fun-green);
  color: #212121;
}
.cookie-btn.reject {
  background: var(--fun-pink);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  transform: scale(1.04) translateY(-1px);
  outline: none;
  box-shadow: 0 0 0 3px var(--fun-orange), 0 6px 24px rgba(67,181,229,0.10);
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29,53,87,0.19);
  z-index: 3700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp .3s both;
}
.cookie-modal {
  background: #fffefb;
  border-radius: 30px;
  box-shadow: 0 6px 52px rgba(30,32,46,0.18);
  padding: 36px 32px 34px 32px;
  min-width: 300px;
  max-width: 97vw;
  width: 430px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInUp .5s cubic-bezier(.48,1.64,.41,.8) both;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--secondary);
  padding: 12px 18px;
  border-radius: 15px;
  font-size: 1.08rem;
  color: var(--primary);
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-category .cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cookie-modal .cookie-btn {
  margin-top: 12px;
  margin-bottom: 0;
}
.cookie-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--fun-orange);
  color: var(--primary);
  font-size: 1.3rem;
  padding: 6px 13px;
  border-radius: 18px;
  border: none;
  box-shadow: 0 1px 6px rgba(67,181,229,0.09);
  line-height: 1;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--fun-pink);
  color: #fff;
}

/* Toggle Switch for Cookie Modal */
.cookie-switch input[type='checkbox'] {
  -webkit-appearance: none;
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 16px;
  background: #eee;
  outline: none;
  box-shadow: 0 1px 3px #a8dadc33;
  position: relative;
  vertical-align: middle;
  transition: background .22s;
  margin-right: 10px;
}
.cookie-switch input[type='checkbox']:checked {
  background: var(--fun-pink);
}
.cookie-switch input[type='checkbox']:before {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 100vw;
  background: #fff;
  box-shadow: 0 1px 4px #21212133;
  position: absolute;
  top: 2.5px; left: 4px;
  transition: left .22s, background .19s;
}
.cookie-switch input[type='checkbox']:checked:before {
  left: 19px;
  background: #fff3e4;
}
.cookie-switch input[type='checkbox']:disabled {
  background: #d6dbe2;
  opacity: 1!important;
}
.cookie-switch input[type='checkbox']:disabled:before {
  background: #eee;
}

/* --- OVERLAY/FIXED ELEMENTS Z-INDEX PRESENTATION --- */
.mobile-menu, .cookie-modal-overlay { z-index: 3500; }
.cookie-banner { z-index: 4500; }

/* --- FORMS (THANK YOU & KONTAKT) --- */
form, .content-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 12px;
  border: 1.7px solid var(--secondary);
  padding: 11px 15px;
  transition: border-color .19s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--fun-pink);
  box-shadow: 0 2px 11px #ff38a720;
}

/* --- MEDIA QUERIES & RESPONSIVENESS --- */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
  .footer-top { gap: 22px; }
}
@media (max-width: 992px) {
  .container {
    max-width: 750px;
  }
  .footer-top {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 18px;
  }
  .social-links { justify-content: flex-end; }
}
@media (max-width: 820px) {
  .container { max-width: 95vw; }
  section { padding: 34px 0; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .container { max-width: 98vw; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 26px; }
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
  }
  .features-grid, .service-cards, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .text-section {
    align-items: flex-start;
    gap: 10px;
    padding: 0 0 10px 0;
  }
  .section { margin-bottom: 38px; padding: 24px 4vw; }
  .testimonial-card {
    max-width: 98vw;
    padding: 15px 10px;
  }
  .summary-stats {
    padding: 12px 8px;
    font-size: .97rem;
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.07rem; }
  .footer-top { gap: 18px; }
  .footer-bottom { padding: 10px 0 7px 0; }
  .cta-primary, .cta-secondary {
    padding: 10px 17px;
    font-size: .96rem;
  }
  .section { margin-bottom: 24px; padding: 16px 1vw; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 8px 10px 8px; }
  .cookie-modal { width: 93vw; padding: 15px 4vw 15px 4vw; }
}

/* --- A11Y FOCUS --- */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus, .cookie-btn:focus {
  outline: none;
  box-shadow: var(--focus);
}

/* --- UTILITIES --- */
.hide {
  display: none !important;
}
.flex-center { display: flex; align-items: center; justify-content: center; }

/* --- END --- */
