/* RESET & BASE STYLES */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAFBFE;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #2D3C4F;
  min-height: 100vh;
}
a {
  color: #4D6680;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8CC347;
  outline: none;
}
ul, ol {
  list-style: disc inside;
  margin-bottom: 12px;
}
img {
  max-width: 100%;
  display: block;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #2D3C4F;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 16px; font-weight: 600; }
h4, h5, h6 { font-size: 1.15rem; }

.subheadline {
  color: #88A1C6;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #2D3C4F;
}
strong {
  font-weight: 700;
}

/* THEME COLORS (SOFT PASTEL INSPIRED) */
:root {
  --primary: #2D3C4F;
  --secondary: #8CC347;
  --accent: #E8F1E4;
  --pastel-blue: #E6EFFE;
  --pastel-lilac: #F2EEF9;
  --pastel-green: #E8F7E2;
  --pastel-pink: #FFF0F4;
  --pastel-peach: #FEF6ED;
  --pastel-mint: #D0F5ED;
  --shadow: 0 2px 12px 0 rgba(60,110,153,0.09);
  --radius: 16px;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 20px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  background: var(--pastel-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 20px;
  margin-bottom: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  min-width: 250px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 20px 0 rgba(60,110,153,0.15);
  transform: translateY(-3px) scale(1.015);
}
.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 {
  background: var(--pastel-green);
  color: #203144;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.14s;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #435468;
  margin-top: 4px;
  font-weight: 500;
}
.testimonial-card p {
  margin-bottom: 8px;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-peach);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  margin-bottom: 16px;
}

/* HEADER & NAVIGATION */
header {
  background: linear-gradient(90deg, #E8F1E4 0%, #E6EFFE 80%, #F2EEF9 100%);
  box-shadow: 0 2px 14px 0 rgba(100,130,180,0.03);
  padding: 0 0 6px 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
header img {
  width: 160px;
  height: auto;
  margin-right: 28px;
  display: block;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #2D3C4F;
  font-size: 1rem;
  padding: 7px 16px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
nav a.cta {
  background: linear-gradient(93deg, #F2EEF9 10%, #E8F1E4 90%);
  color: #356655;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 1px 6px 0 rgba(80,180,140,0.08);
  padding: 7px 22px;
  margin-left: 8px;
  border: 1px solid #E3EEDE;
}
nav a.cta:hover, nav a.cta:focus {
  background: linear-gradient(92deg, #E8F1E4 20%, #D0F5ED 85%);
  color: #1F6F5A;
}
nav a:hover, nav a:focus {
  background: var(--pastel-green);
  color: #8CC347;
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--pastel-mint);
  border-radius: 8px;
  color: #365770;
  font-size: 2.1rem;
  padding: 2px 12px 0 12px;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.2s, color 0.2s;
  z-index: 1101;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #E8F1E4;
  color: #174257;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #E6EFFE 70%, #FFF0F4 100%);
  box-shadow: 0 6px 32px rgba(90,100,150,0.10);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.78,.16,.32,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 22px 10px 0;
  background: var(--pastel-pink);
  border-radius: 50%;
  color: #2D3C4F;
  padding: 4px 16px;
  font-size: 2.3rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  z-index: 1202;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--pastel-lilac);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  margin-left: 35px;
  margin-top: 10px;
}
.mobile-nav a {
  color: #244469;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  padding: 12px 0;
  font-weight: 600;
  border-radius: 7px;
  width: 100%;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-mint);
  color: #8CC347;
  padding-left: 4px;
}

/* MAIN cta BUTTON */
.cta {
  display: inline-block;
  background: linear-gradient(95deg, #E8F1E4 80%, #D0F5ED 100%);
  color: #356655;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  border: 1px solid #E3EEDE;
  border-radius: 12px;
  padding: 12px 28px;
  box-shadow: 0 2px 8px 0 rgba(110,210,130,0.09);
  margin-top: 10px;
  margin-bottom: 8px;
  text-align: center;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s, transform 0.15s;
}
.cta:hover, .cta:focus {
  background: linear-gradient(90deg, #D0F5ED 65%, #E8F1E4 100%);
  box-shadow: 0 4px 22px 0 rgba(80,180,140,0.15);
  color: #1E5B47;
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

/* FOOTER */
footer {
  background: linear-gradient(95deg, #F2EEF9 40%, #E6EFFE 100%);
  border-top: 1px solid #E9F4EB;
  margin-top: 60px;
  padding: 38px 0 20px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer nav {
  gap: 18px;
  margin-bottom: 12px;
}
footer nav a {
  color: #345678;
  font-size: 1rem;
  padding: 5px 8px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--pastel-peach);
  color: #8CC347;
}
footer p {
  font-size: 0.96rem;
  color: #818A99;
  margin: 0;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: linear-gradient(90deg, #E8F1E4 60%, #F2EEF9 100%);
  box-shadow: 0 -4px 24px 0 rgba(69,133,115,0.13);
  padding: 24px 18px 20px 18px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.32s, transform 0.32s;
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 8px 0 rgba(61,140,120,0.08);
  transition: background 0.22s, color 0.22s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: linear-gradient(93deg, #E8F1E4 80%, #D0F5ED 100%);
  color: #266254;
  border: 1px solid #C3ECCF;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: linear-gradient(92deg, #D0F5ED 70%, #E8F1E4 100%);
  color: #1E5B47;
  outline: none;
}
.cookie-btn.reject {
  background: #FFF0F4;
  color: #CB365B;
  border: 1px solid #F6D6E3;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F2EEF9;
  color: #AE2A3A;
}
.cookie-btn.settings {
  background: #F2EEF9;
  color: #6442A5;
  border: 1px solid #E5D1F6;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #E6EFFE;
  color: #2D3C4F;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0;
  width:100vw; height:100vh;
  background: rgba(44,72,99,0.28);
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.active {
  display: flex;
}
.cookie-modal {
  background: linear-gradient(98deg, #FFF0F4 30%, #E8F1E4 85%);
  border-radius: 20px;
  box-shadow: 0 12px 34px 0 rgba(91,111,170,0.13);
  padding: 44px 32px 26px 32px;
  max-width: 420px;
  width: 90vw;
  z-index: 1402;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-in 340ms cubic-bezier(.77,-0.18,.32,1.19);
}
@keyframes modal-in {
  0%   { opacity:0; transform:scale(0.95) translateY(24px);}
  100% { opacity:1; transform:scale(1) translateY(0);}
}
.cookie-modal h3 {
  color: #2D3C4F;
  margin-bottom: 4px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #315157;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  background: #D0F5ED;
  border-radius: 14px;
  transition: background 0.2s;
  margin-right: 6px;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 36px;
  height: 20px;
  position: absolute;
  top: 0; left: 0;
}
.cookie-modal .toggle-switch .slider {
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px; top: 2px;
  background: #fff;
  box-shadow: 0 1px 4px 0 rgba(110,210,130,0.07);
  border-radius: 50%;
  transition: left 0.19s cubic-bezier(.4,.2,.60,1.2);
}
.cookie-modal .toggle-switch input:checked + .slider {
  left: 18px;
  background: #8CC347;
}
.cookie-modal .description {
  font-size: 0.95rem;
}
.cookie-modal .cookie-btn {
  max-width: 180px;
  margin-top: 12px;
  align-self: flex-end;
}

/* GENERAL RESPONSIVE: MOBILE FIRST */
@media (max-width: 1230px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 991px) {
  header .container {
    flex-direction: row;
    padding: 0 10px;
  }
  .container, .content-wrapper, .text-section {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .content-wrapper, .text-section {
    padding: 24px 12px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding-left: 5vw;
    padding-right: 5vw;
  }
  nav {
    display: none; 
  }
  .mobile-menu-toggle {
    display: block;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 6px;
  }
  .content-wrapper, .text-section {
    font-size: 1rem;
    padding: 18px 5px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card, .card, .feature-item {
    padding: 14px 10px;
    margin-bottom: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  footer {
    margin-top: 24px;
    padding: 22px 0 10px 0;
  }
  .mobile-menu {
    padding-top: 6vw;
  }
  /* Modal for mobile */
  .cookie-modal {
    padding: 26px 10px 12px 10px;
    max-width: 96vw;
  }
}

@media (max-width: 550px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.08rem; }
  .container {
    padding-left: 2vw;
    padding-right: 2vw;
  }
}

/* MICRO-ANIMATIONS & DECORATIVE */
.card, .testimonial-card, .feature-item {
  transition: transform 0.14s, box-shadow 0.22s;
}
.card:hover, .feature-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 24px 0 rgba(70,150,130,0.12);
}
.testimonial-card:hover {
  background: var(--pastel-mint);
  box-shadow: 0 8px 30px 0 rgba(80,207,160,0.11);
}

.cta:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* UTILITY */
.d-none { display: none !important; }
.m-0 { margin: 0 !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* FOCUS VISIBLE FOR ACCESSIBILITY */
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2px solid #8CC347;
  outline-offset: 2px;
}

/* SPACING & GAP AS PER REQUIREMENTS */
.card-container, .content-grid {
  gap: 20px;
  flex-wrap: wrap;
}
.card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ENSURE NO OVERLAPPING AND ADEQUATE SPACING */
main > section {
  margin-bottom: 40px;
}
main > section:last-child {
  margin-bottom: 0;
}

/* FORM ELEMENTS (for kontakt.html etc.) */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: #F7FAFD;
  border: 1px solid #E3EEF6;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  transition: border 0.18s;
}
input:focus, textarea:focus {
  border: 1.5px solid #8CC347;
  background: #EFF9EF;
}
label {
  font-size: 1rem;
  margin-bottom: 7px;
  color: #567;
  display: block;
}

/* CUSTOM SCROLLBAR for mobile menu and modals */
.mobile-menu, .cookie-modal {
  scrollbar-width: thin;
  scrollbar-color: #D0F5ED #E6EFFE;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar {
  width: 7px; background: #E8F1E4;
}
.mobile-menu::-webkit-scrollbar-thumb, .cookie-modal::-webkit-scrollbar-thumb {
  background: #C3ECCF; border-radius: 6px;
}

/* HIDE SCROLLBAR in main content if modal is active (for modal management, optional) */
body.modal-open {
  overflow: hidden;
}
