/* ------------------------------------------------------
   CSS RESET & ROOT VARIABLES
------------------------------------------------------ */
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: #fff;
  color: #22406A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #F9FBFD;
}
*, *:before, *:after {
  box-sizing: inherit;
  word-break: break-word;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}
ul, ol {
  list-style: none;
}

/* ----------------------------------------------
   BRAND & THEME COLORS AS CSS VARIABLES
---------------------------------------------- */
:root {
  --primary: #22406A;
  --secondary: #D9E3E8;
  --accent: #FECC5C;
  --surface: #fff;
  --dark: #191A23;
  --mid: #7A94B2;
  --playful1: #FF72B6;
  --playful2: #62D1F3;
  --playful3: #79FE8F;
  --shadow: rgba(34,64,106,0.08);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-md: 0 4px 24px var(--shadow);
  --transition-ui: 0.25s cubic-bezier(.4,1.3,.5,1);
  --z-header: 1000;
  --z-mobile-menu: 2000;
  --z-cookie: 3000;
}

/* ----------------------------------------
   PLAYFUL/DYNAMIC TYPOGRAPHY
---------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}

h1, h2, h3, .category, .subtitle {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--playful2);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.subtitle {
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--playful1);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
p, ul li, ol li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--dark);
}
strong, b {
  font-weight: bold;
  color: var(--primary);
}
.category {
  display: inline-block;
  font-size: 0.98em;
  font-weight: 700;
  color: var(--playful3);
  background: var(--secondary);
  padding: 2px 14px;
  margin-top: 7px;
  border-radius: 24px;
  letter-spacing: 0.03em;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ----------------------------------------
   LAYOUT & SECTIONS
---------------------------------------- */
.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* - Card container for Services etc. - */
.card-container, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.service-card, .card, .blog-preview {
  flex: 1 1 280px;
  background: var(--secondary);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px var(--shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition-ui), transform var(--transition-ui);
  min-width: 260px;
  max-width: 330px;
  cursor: pointer;
  overflow: hidden;
}
.service-card:hover, .card:hover, .blog-preview:hover {
  box-shadow: 0 6px 32px rgba(34,64,106,0.18);
  transform: translateY(-7px) rotate(-1.5deg) scale(1.025);
}

/* - Blog Preview Card - */
.blog-preview {
  margin-bottom: 20px;
  background: var(--playful2);
  color: var(--primary);
  transition: background 0.2s, box-shadow 0.2s;
}
.blog-preview h3 a {
  color: var(--primary);
  text-decoration: none;
}
.blog-preview:hover {
  background: var(--playful1);
  color: #fff;
}
.blog-preview:hover h3 a {
  color: #fff;
}

/* ----------------------------------------
   FEATURES, USPS, ICONS
---------------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  margin-bottom: 5px;
}
.feature-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--playful3);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 25px 14px 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
  min-width: 220px;
  flex: 1 1 210px;
  box-shadow: 0 1px 6px var(--shadow);
  transition: transform .17s, box-shadow .17s;
}
.feature-grid li img {
  width: 32px;
  height: 32px;
}
.feature-grid li:hover {
  background: var(--playful2);
  color: #fff;
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 2px 18px rgba(34,64,106,0.11);
}
.usp-list {
  margin-top: 12px;
  margin-bottom: 6px;
  padding-left: 18px;
}
.usp-list li {
  margin-bottom: 7px;
  font-weight: 500;
  font-size: 1.08em;
  position: relative;
  padding-left: 20px;
}
.usp-list li:before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--playful1);
  font-size: 18px;
  top: 2px;
  font-weight: 900;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ----------------------------------------
   TESTIMONIALS
---------------------------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  margin-bottom: 24px;
  margin-right: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 18px rgba(34,64,106,0.16);
  border-left: 7px solid var(--accent);
  position: relative;
  max-width: 480px;
  min-width: 220px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card blockquote {
  font-size: 1.12em;
  font-style: italic;
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.testimonial-card p {
  font-size: 1em;
  font-weight: 600;
  color: var(--playful2);
}
.testimonial-card:hover {
  transform: translateY(-3px) scale(1.015) rotate(1.2deg);
  box-shadow: 0 6px 28px rgba(34,64,106,0.18);
}

/* ----------------------------------------
   BUTTONS & CTAS
---------------------------------------- */
.cta, .blog-filters a, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--primary);
  border-radius: 999px;
  padding: 13px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08em;
  font-weight: bold;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow);
  transition: background 0.2s, color 0.2s, box-shadow 0.22s, transform 0.17s;
  margin-top: 18px;
}
.cta.primary {
  background: var(--playful2);
  color: #fff;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--playful1);
  color: #fff;
  transform: scale(1.03);
}
.cta:hover, .cookie-btn:hover, .blog-filters a:hover {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 18px rgba(34,64,106,0.18);
}

/* BLOG FILTERS */
.blog-filters {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.blog-filters span {
  font-weight: 700;
  color: var(--primary);
  margin-right: 8px;
}
.blog-filters a {
  background: var(--secondary);
  color: var(--primary);
  font-size: 1em;
  padding: 7px 19px;
  border-radius: 99px;
  transition: background 0.2s, color 0.18s;
}

/* ----------------------------------------
   HEADER/NAVIGATION (DESKTOP & MOBILE)
---------------------------------------- */
header {
  width: 100%;
  background: var(--surface);
  box-shadow: 0 2px 18px var(--shadow);
  z-index: var(--z-header);
  position: sticky;
  top: 0;
  left: 0;
}
header .container,
header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 74px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.logo-link {
  display: flex;
  align-items: center;
  margin-right: 15px;
}
.logo-link img {
  height: 56px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  margin-left: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1em;
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 32px;
  transition: background 0.19s, color 0.19s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-menu-toggle {
  display: none;
  background: var(--playful2);
  color: #fff;
  border: none;
  font-size: 2.5em;
  line-height: 1;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.2s, color 0.17s;
  margin-left: 12px;
  margin-right: 5px;
  z-index: var(--z-header);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--playful1);
  color: #fff;
  outline: none;
}

/* ---------------
   MOBILE-NAV MENU
 --------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--surface);
  box-shadow: 0 6px 40px rgba(34,64,106,0.17);
  z-index: var(--z-mobile-menu);
  padding: 32px 32px 16px 32px;
  transform: translateX(-100vw);
  transition: transform 0.47s cubic-bezier(.63,1.36,.23,1.01);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--playful1);
  color: #fff;
  border: none;
  font-size: 2.1em;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-bottom: 22px;
  cursor: pointer;
  box-shadow: 0 1px 8px var(--shadow);
  transition: background 0.2s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--playful2);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 32px;
  padding: 13px 30px;
  transition: background 0.15s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--playful2);
  color: #fff;
}

/* Hide burger menu on desktop */
@media (min-width:1024px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
  .main-nav, .cta.primary {
    display: flex;
  }
}

@media (max-width:1023.98px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta.primary {
    display: none;
  }
}

/* ----------------------------------------
   FLEX WRAPPING AND SECTION GAPS
---------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid, .content-grid {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ----------------------------------------
   FOOTER
---------------------------------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding-top: 45px;
  padding-bottom: 23px;
  margin-top: 65px;
  width: 100%;
}
footer .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-nav, .footer-legal, .footer-contact, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a, .footer-legal a {
  color: var(--accent);
  font-size: 1em;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 0;
  text-decoration: underline;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--playful1);
  text-decoration: none;
}
.footer-contact p, .footer-contact a {
  color: #fff;
  font-size: 1em;
  margin-bottom: 2px;
  line-height: 1.7;
}
.footer-social {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.footer-social img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.11));
  transition: transform 0.16s;
}
.footer-social img:hover {
  transform: scale(1.13) rotate(-8deg);
}
footer strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
}

/* ----------------------------------------
   COOKIE CONSENT BANNER (FIXED BOTTOM)
---------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-cookie);
  background: var(--playful2);
  color: #fff;
  padding: 22px 12px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -2px 22px rgba(34,64,106,0.19);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  animation: cookieSlideIn 0.7s cubic-bezier(.4,1.33,.5,1);
}
@keyframes cookieSlideIn {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #fff;
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 0;
}
.cookie-btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 22px;
  font-size: 1em;
  padding: 11px 24px;
  margin-left: 7px;
  margin-right: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.18s, color 0.17s, transform 0.12s;
}
.cookie-btn.settings {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--accent);
}
.cookie-btn:hover { background: var(--playful1); color: #fff; transform: scale(1.03); }

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.96);
  z-index: 3100;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(34,64,106,.32);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modal-fadein 0.37s cubic-bezier(.4,1.33,.5,1);
}
@keyframes modal-fadein {
  from { opacity: 0; transform: translate(-50%,-40%) scale(0.89); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1.0); }
}
.cookie-modal h2 {
  font-size: 1.25em;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1em;
  margin-top: 9px;
  background: var(--secondary);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 200px;
  justify-content: flex-start;
}
.cookie-modal .switch {
  width: 44px;
  height: 28px;
  border-radius: 17px;
  background: var(--playful2);
  position: relative;
  margin-left: 6px;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 3px;
  left: 5px;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px var(--shadow);
  transition: transform 0.18s;
}
.cookie-modal .switch input:checked + .slider {
  transform: translateX(18px);
  background: var(--accent);
}
.cookie-modal .essential {
  opacity: 0.5;
}
.cookie-modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--primary);
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 18px;
}
.cookie-modal-close:hover { color: var(--playful1); }

/* ----------------------------------------
   MEDIA QUERIES: RESPONSIVE DESIGN
---------------------------------------- */
@media (max-width: 1023.98px) {
  .container {
    max-width: 97vw;
    padding-left: 7vw;
    padding-right: 7vw;
  }
  header .container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .footer-contact, .footer-legal, .footer-nav, .footer-social {
    flex-basis: 100%;
    margin-bottom: 14px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .service-card, .card, .blog-preview, .testimonial-card {
    min-width: 88vw;
    max-width: 97vw;
    padding: 22px 11px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.1em;
  }
  h2 {
    font-size: 1.38em;
  }
  .container {
    max-width: 99vw;
    padding-left: 9px;
    padding-right: 9px;
  }
  .section {
    padding: 28px 7px;
    margin-bottom: 40px;
    border-radius: 16px;
  }
  .card-container, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid li {
    min-width: 140px;
    font-size: 0.99rem;
    padding: 9px 12px;
  }
  .service-card, .card, .blog-preview,
  .testimonial-card {
    max-width: 97vw;
    padding: 16px 8px;
    margin-bottom: 18px;
    font-size: 0.99em;
  }
  .cta, .cookie-btn {
    width: 100%;
    margin-top: 14px;
    padding: 13px 0;
    font-size: 1.11em;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 17px 8px;
    border-radius: 14px 14px 0 0;
  }
}
@media (max-width: 600px) {
  .blog-preview {
    min-width: 95vw;
    max-width: 99vw;
    padding: 13px 3px;
  }
}

@media (max-width: 768px) {
  /* Text-image-section switches to column on mobile */
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}

/* ----------------------------------------
   ANIMATIONS & MICROINTERACTIONS
---------------------------------------- */
@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(32px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1.00); }
}
.section, .service-card, .testimonial-card, .feature-grid li, .card, .blog-preview {
  animation: fadeInUp 0.9s cubic-bezier(.4,1.33,.5,1) both;
}

/* ----------------------------------------
   ACCESSIBILITY & INTERACTION
---------------------------------------- */
:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* -----------------------------------------------
   SCROLLBAR & WHITE SPACE
----------------------------------------------- */
body {
  scroll-behavior: smooth;
}
::-webkit-scrollbar {
  width: 14px;
  background: var(--secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--playful2);
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ----------------------------------------
   FORMS (if any, including kontakt page)
---------------------------------------- */
input, textarea, select {
  font-family: inherit;
  border: 2px solid var(--playful2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 1rem;
  transition: border-color 0.17s;
  margin-bottom: 22px;
  background: #fff;
  color: var(--primary);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
}
label {
  display: inline-block;
  margin-bottom: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
}

/* ----------------------------------------
   TABLE & RICH CONTENT (for legal pages)
---------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
}
th, td {
  padding: 10px 14px;
  border: 1px solid var(--secondary);
  font-size: 1em;
  color: var(--primary);
}
th {
  background: var(--playful1);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ----------------------------------------
   Misc. Utility (hide, show, etc.)
---------------------------------------- */
.hide {
  display: none !important;
}
.show {
  display: block !important;
}

/* END OF PLAYFUL_DYNAMIC FLEXBOX CSS */
