/* === 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;
}
/* 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: #F4F6FA;
  color: #23273a;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #173785;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #26BDAF;
}
ul, ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

/* === BRAND FONTS === */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #173785;
  line-height: 1.1;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 28px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1rem;
}
p, li, span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #23273a;
  margin-bottom: 12px;
}
strong {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* === CREATIVE ARTISTIC COLOR SCHEME === */
:root {
  --primary: #173785;
  --secondary: #26BDAF;
  --accent: #F4F6FA;
  --card-bg: #ffffff;
  --card-border: #e2e6f3;
  --focus: #ffcd2b;
  --creative-orange: #ff6b36;
  --creative-pink: #ea4fcf;
  --creative-yellow: #ffd34e;
  --shadow: 0 4px 16px rgba(23,55,133,0.10);
  --shadow-hover: 0 6px 24px rgba(23,55,133,0.13);
}

/* == LAYOUT UTILITY CLASSES == */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: none;
}
.text-section {
  background: #fff6fa;
  border-radius: 28px;
  box-shadow: 0 4px 32px rgba(234,79,207,0.06);
  padding: 32px 20px;
}

/* === FLEXBOX PATTERNS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px 22px 22px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.02) rotate(-1deg);
}
.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-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fffbe8;
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 2px 12px 0 rgba(255,211,78,0.11);
  gap: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 400px;
  border-left: 5px solid var(--creative-yellow);
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  color: #23273a;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 8px;
}
.testimonial-card span,
.testimonial-card strong {
  color: #173785;
  font-weight: bold;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === FLUID FEATURE GRID/ ICON GRID === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.feature-grid li {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 300px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: box-shadow 0.18s, transform 0.13s;
  border-left: 4px solid var(--secondary);
  margin-bottom: 12px;
}
.feature-grid li:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.025) rotate(0.5deg);
}
.feature-grid li img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.feature-grid h3 {
  color: var(--primary);
  font-size: 1.13rem;
  margin-bottom: 6px;
}

/* == CARD/RESULTS SUMMARIES ON CASE STUDIES ETC == */
.results-summaries {
  background: #ea4fcf12;
  border-radius: 14px;
  padding: 20px 16px;
  margin-top: 18px;
  font-size: 1.06rem;
}

.client-logos {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  align-items: center;
}

/* === Call-To-Action Buttons === */
.cta {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 60px;
  display: inline-block;
  padding: 14px 36px;
  background: var(--secondary);
  color: #fff;
  margin-top: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px 0 rgba(38,189,175,0.13);
  border: 2px solid var(--secondary);
  transition: background 0.18s, color 0.17s, transform 0.16s;
}
.cta.primary {
  background: linear-gradient(90deg, #26BDAF 60%, #ea4fcf 130%);
  border: 2px solid #26BDAF;
  color: #fff;
  box-shadow: 0 4px 24px rgba(234,79,207,0.13);
}
.cta:hover, .cta:focus {
  color: #173785;
  background: #FFD34E;
  border-color: #ffd34e;
  transform: translateY(-2px) scale(1.04);
}

/* === HEADER/NAVIGATION === */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(23,55,133,0.04);
  padding: 0;
  width: 100%;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 20px 16px 20px;
  flex-wrap: wrap;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  color: #173785;
  margin-right: 16px;
  padding: 9px 14px;
  border-radius: 32px;
  position: relative;
  z-index: 10;
  transition: background 0.2s, color 0.15s;
}
.main-nav > a.cta {
  margin-right: 0;
  margin-left: 12px;
}
.main-nav > a.primary {
  font-size: 1.13rem;
}
.main-nav > a:after {
  content: '';
  display: block;
  height: 2px;
  background: var(--secondary);
  width: 0;
  position: absolute;
  bottom: 4px;
  left: 17%;
  border-radius: 2px;
  transition: width 0.2s;
}
.main-nav > a:hover::after {
  width: 64%;
  background: #ff6b36;
}
.main-nav > a:hover,
.main-nav > a.active {
  color: #ea4fcf;
  background: #f4f6fa;
}
.main-nav img {
  height: 38px;
  margin-right: 20px;
}

/* === MOBILE BURGER MENU === */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  padding: 10px 17px;
  margin: 10px 15px 10px auto;
  box-shadow: 0 2px 10px rgba(23,55,133,0.16);
  z-index: 80;
  border: 3px solid #fff;
  transition: background 0.18s, color 0.14s;
  position: relative;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: #173785;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  position: fixed;
  background: #fff;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 370px;
  height: 100vh;
  transform: translateX(100%);
  z-index: 120;
  box-shadow: -2px 0 24px 0 rgba(23,55,133,0.12);
  transition: transform 0.37s cubic-bezier(.4,1,.5,1), box-shadow 0.22s;
  padding-top: 16px;
  padding-right: 10px;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: -3px 0 34px rgba(38,189,175,0.18);
}
.mobile-menu-close {
  color: #173785;
  background: #ffd34e;
  border-radius: 50%;
  font-size: 2.2rem;
  margin-right: 18px;
  margin-bottom: 16px;
  border: 2px solid var(--accent);
  transition: background 0.2s, color 0.17s;
  z-index: 160;
  width: 46px;
  height: 46px;
}
.mobile-menu-close:hover {
  background: #ea4fcf;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 22px 0 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.17rem;
  color: #173785;
  padding: 14px 8px;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 2px;
  transition: background 0.16s, color 0.14s;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #ffd34e;
  color: #ea4fcf;
}

/* === HERO / HEADERS === */
main section:first-child .container .content-wrapper h1 {
  font-size: 2.7rem;
  background: linear-gradient(92deg,#173785 50%, #26BDAF 80%, #ea4fcf 120%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px #fffbe8cc;
}
main section:first-child .container .content-wrapper p {
  font-size: 1.21rem;
  margin-bottom: 13px;
}

/* === BLOG/STYLED POST CATEGORIES === */
.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1rem;
  margin: 20px 0 0 0;
}
.post-categories span {
  display: inline-block;
  background: #ffd34e;
  color: #173785;
  border-radius: 8px;
  padding: 4px 16px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.3px;
}

/* === NEWSLETTER SIGNUP BOX/BLOG === */
.newsletter-signup {
  background: #fff0e6;
  border-radius: 20px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 4px 16px #ff6b3622;
}

/* === FOOTER === */
footer {
  background: #173785;
  color: #fff;
  font-size: 1rem;
  padding: 0 0 0 0;
  margin-top: 70px;
}
footer .container {
  padding-top: 38px;
  padding-bottom: 18px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}
.footer-main img {
  height: 36px;
  margin-right: 12px;
}
.footer-main nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-main nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.93;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background 0.13s, color 0.14s;
}
.footer-main nav a:hover {
  background: #fffbe8;
  color: #173785;
}
.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}
.footer-info > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-info img {
  width: 21px;
  height: 21px;
}
.footer-brand {
  text-align: left;
  padding: 11px 0 0 0;
  opacity: 0.72;
  font-size: 0.93rem;
  color: #d6e0fa;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* === MAP/INLINE ICON SECTIONS ON "KONTAKT" === */
.text-section > div, .map {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #173785;
}
.map p {
  margin: 0;
  font-size: 1rem;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #173785;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 2000;
  box-shadow: 0 -2px 18px 0 rgba(23,55,133,0.11);
  padding: 22px 32px;
  gap: 24px;
  animation: slideUp 0.7s cubic-bezier(.16,.62,.92,1);
}
@keyframes slideUp {
  0% {transform: translateY(100%); opacity: 0;} 100% {transform: translateY(0); opacity:1;}
}
.cookie-banner__text {
  font-size: 1.06rem;
  color: #fff;
  margin-bottom: 0;
  margin-right: 20px;
  max-width: 460px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 30px;
  padding: 11px 28px;
  margin-bottom: 0;
  border: 0;
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(234,79,207,0.10);
  margin-right: 2px;
  transition: background 0.16s, color 0.14s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: #26BDAF;
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #ffd34e;
  color: #173785;
}
.cookie-btn.reject {
  background: #ea4fcf;
  color: #fff;
}
.cookie-btn.reject:hover {
  background: #ff6b36;
  color: #fff;
}
.cookie-btn.settings {
  background: #fffbe8;
  color: #173785;
  border: 2px solid #ffd34e;
}
.cookie-btn.settings:hover {
  background: #ffd34e;
  color: #173785;
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 2050;
  left: 0; top: 0; right: 0; bottom:0;
  background: rgba(23,55,133,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.21s;
}
@keyframes fadeInCookieModal {
  0% {opacity: 0;} 100% {opacity:1;}
}
.cookie-modal {
  background: #fff;
  color: #23273a;
  border-radius: 26px;
  box-shadow: 0 8px 40px #17378522;
  max-width: 460px;
  width: 88vw;
  padding: 38px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal h2 {
  color: #173785;
  font-size: 1.42rem;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  right: 18px;
  top: 18px;
  background: #ffd34e;
  color: #173785;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.12s;
}
.cookie-modal .close-cookie-modal:hover {
  background: #ea4fcf;
  color: #fff;
}
.cookie-modal__group {
  margin-bottom: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e6f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-modal__group:last-child {
  border-bottom: none;
}
.cookie-modal__toggle {
  width: 34px;
  height: 20px;
  border-radius: 16px;
  background: #ea4fcf33;
  position: relative;
  cursor: pointer;
  transition: background 0.17s;
  display: inline-flex;
  align-items: center;
}
.cookie-modal__toggle[data-enabled="true"] {
  background: #26BDAF;
}
.cookie-modal__toggle span {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 3px;
  transition: left 0.21s;
}
.cookie-modal__toggle[data-enabled="true"] span {
  left: 13px;
}
.cookie-modal__desc {
  display: block;
  font-size: 0.96rem;
  color: #6a6994;
}

/* === RESPONSIVE DESIGN (MOBILE-FIRST) === */
@media (max-width: 1100px) {
  .feature-grid li { max-width: 47%; }
  .footer-main { gap: 25px; }
  .card-container { gap: 17px; }
}
@media (max-width: 850px) {
  .feature-grid li { max-width: 98vw; min-width: 140px; }
  .card-container { gap: 15px; }
  .content-grid { gap: 10px; }
  .footer-main { flex-direction: column; gap: 30px; }
  .footer-info { flex-direction: column; gap: 11px; align-items: flex-start; }
  .section { padding: 24px 10px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: 20px;
  }
  .feature-grid, .testimonial-list, .client-logos {
    flex-direction: column;
    gap: 19px;
    align-items: stretch;
  }
  .content-wrapper, .text-section {
    padding: 22px 7px;
    gap: 18px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section { flex-direction: column; gap: 14px; }
  .testimonial-card {
    max-width: 100%;
    padding: 15px 15px;
  }
  h1{ font-size: 1.64rem; }
  h2{ font-size: 1.23rem; }
  
  .cookie-banner{
    flex-direction: column;
    gap: 18px;
    padding: 17px 9px;
    align-items: flex-start;
  }
  .cookie-banner__text {
    max-width: 100vw;
    font-size: 0.997rem;
  }
  .cookie-banner__actions {
    gap: 8px;
  }
  .footer-main { flex-direction: column; gap: 19px; align-items: flex-start; }
}
@media (max-width: 520px) {
  .feature-grid li { padding: 14px 9px; }
  .section { padding: 17px 3px; }
  .container { padding-left: 5px; padding-right: 5px; }
  footer .container { padding-left: 5px; padding-right: 5px; }
  .newsletter-signup {
    padding: 12px 8px;
  }
  .footer-info {
    gap: 6px;
    font-size: 0.96rem;
  }
  .footer-brand { font-size: 0.83rem; }
  .cookie-modal { padding: 19px 7px 19px 10px;}
}

/* === ANIMATIONS & MICRO INTERACTIONS === */
.card, .feature-grid li, .testimonial-card, .newsletter-signup {
  transition: box-shadow 0.18s, transform 0.13s, background 0.17s;
}
.card:active, .feature-grid li:active, .testimonial-card:active {
  transform: scale(.98) rotate(-1deg);
  box-shadow: 0 1px 6px #ff6b3677;
}

/* === VISUAL FLAIR: ARTISTIC ACCENTS === */
h1, h2, .cta, .cookie-btn.accept {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.cta, .cookie-btn {
  text-shadow: 0 1px 6px #fffbe877;
  box-shadow: 0 2px 10px #26bdafa1;
}
h1, .cta, .cookie-btn.accept {
  filter: drop-shadow(0 1px 12px #ffd34e55);
}

/* === MISC STYLES AND UTILS === */
::-webkit-scrollbar {width: 8px; background: #ea4fcf11;}
::-webkit-scrollbar-thumb {background: #ea4fcf33; border-radius: 6px;}

/* Hide cookies modal and mobile menu by default on page load (should be toggled by JS) */
.cookie-modal-overlay, .cookie-modal { display: none; }

/* Utility: Show .cookie-modal when parent .cookie-modal-overlay is visible */
.cookie-modal-overlay.active { display: flex; }
.cookie-modal-overlay.active .cookie-modal { display: flex; }

/* Utility: Show .mobile-menu when .open is applied (handled in JS) */
.mobile-menu:not(.open) { pointer-events: none; }
