/* =========================
   CSS RESET & BASE STYLES
========================= */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #213A59;
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
  border: none;
  outline: none;
}
a {
  color: #213A59;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #35B3E5;
  outline: none;
}

/* ===============
   TYPOGRAPHY
================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #213A59;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem; /* 24px */
}
h4 {
  font-size: 1.125rem; /* 18px */
}
p, ul, ol {
  margin-bottom: 16px;
  font-size: 1rem;
}
ul, ol {
  padding-left: 24px;
}
strong {
  font-weight: 700;
}

/* ================
   CONTAINER
================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* ===============
   HEADER & NAV
================ */
header {
  background: #fff;
  border-bottom: 1px solid #EFF1F5;
  z-index: 40;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 64px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-right: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #213A59;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #35B3E5;
  background: #F6F8FB;
}
.btn-primary {
  padding: 10px 28px;
  background: #213A59;
  color: #fff;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 6px rgba(33,58,89,0.09);
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.2s;
  display: inline-block;
  margin-left: 18px;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #35B3E5;
  color: #213A59;
  box-shadow: 0 4px 18px rgba(53,179,229,0.09);
}
button.btn-primary {
  margin-left: 0;
}

/* ================
   MOBILE MENU
================= */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #213A59;
  display: none;
  z-index: 41;
  padding: 8px 10px 4px 10px;
  border-radius: 8px;
  transition: background 0.22s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #EFF1F5;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.42,0,0.58,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px 26px 32px 26px;
  box-shadow: 0 2px 24px rgba(33,58,89,0.12);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: #213A59;
  cursor: pointer;
  margin-bottom: 32px;
  margin-right: 4px;
  padding: 6px 12px 4px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #EFF1F5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: #213A59;
  padding: 12px 0;
  border-radius: 5px;
  transition: background 0.19s, color 0.2s;
  font-weight: 500;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #F6F8FB;
  color: #35B3E5;
}

/* Hide hamburger button and mobile menu on desktop */
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: auto;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =====================
   LAYOUTS & SPACING
==================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(33,58,89,0.03);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 18px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F6F8FB;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(33,58,89,0.03);
  padding: 28px 20px 24px 22px;
  min-width: 220px;
  flex: 1 1 265px;
  transition: box-shadow 0.22s, border 0.19s;
  border: 1px solid #EBEEF3;
}
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}
.feature-item h3 {
  margin-bottom: 10px;
  color: #213A59;
}
.feature-item p {
  margin-bottom: 0;
  font-size: 1rem;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 8px 28px rgba(33,58,89,0.09);
  border: 1px solid #35B3E5;
}

.card-container,
.card-grid,
.post-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-top: 18px;
}
.card,
.post-grid article {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(33,58,89,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px 24px 22px;
  min-width: 240px;
  flex: 1 1 280px;
  transition: box-shadow 0.19s, border 0.19s;
  border: 1px solid #EFF1F5;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover,
.post-grid article:hover {
  box-shadow: 0 8px 36px rgba(53,179,229,0.11);
  border-color: #35B3E5;
}

/* Testimonials Slider/Card */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F6F8FB;
  border-radius: 18px;
  box-shadow: 0 2px 20px rgba(33,58,89,0.07);
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 400px;
  flex: 1 1 340px;
  border: 1px solid #EBEEF3;
}
.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial-card p {
  color: #213A59;
  font-size: 1.03rem;
}
.testimonial-meta {
  font-size: 0.95rem;
  color: #213A59;
  opacity: 0.7;
  margin-bottom: 0;
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}
.star-rating img {
  width: 18px; height: 18px;
}

/* Content grid/section with image & text */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Table styling (Pricing) */
table {
  width: 100%;
  border-collapse: collapse;
  background: #F6F8FB;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  font-size: 1rem;
}
thead {
  background: #213A59;
  color: #fff;
}
thead th {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 14px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
}
tbody td {
  padding: 15px 12px;
  border-bottom: 1px solid #EBEEF3;
}
tbody tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px) {
  table, thead, tbody, tr, th, td {
    display: block;
  }
  thead {
    display: none;
  }
  tbody td {
    padding: 10px 6px;
    border: none;
    border-bottom: 1px solid #EBEEF3;
  }
}

/* Post grid (Blog) */
.post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}
.post-grid article {
  background: #fff;
  box-shadow: 0 2px 14px rgba(33,58,89,0.06);
  border-radius: 12px;
  padding: 22px 18px 18px 18px;
  min-width: 220px;
  flex: 1 1 260px;
  border: 1px solid #EFF1F5;
}
.post-grid article h3 {
  margin-bottom: 10px;
  font-size: 1.13rem;
  color: #213A59;
}
.post-grid article a {
  margin-top: 10px;
  color: #35B3E5;
  font-weight: 500;
  display: inline-block;
}

/* Contact info (Kontakt) */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 22px;
}
.text-section {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #F6F8FB;
  border-radius: 14px;
  padding: 22px 18px;
  min-width: 210px;
}
.text-section ul {
  margin-bottom: 8px;
}
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #213A59;
}
.text-section img {
  width: 18px; height: 18px;
}

/* Input (Blog search) */
input[type="text"] {
  width: 100%;
  max-width: 340px;
  padding: 10px 14px;
  border: 1px solid #EFF1F5;
  border-radius: 7px;
  font-size: 1rem;
  background: #fff;
  margin-top: 10px;
  box-shadow: 0 1px 4px rgba(33,58,89,0.03);
  transition: border-color 0.18s;
}
input[type="text"]:focus {
  border-color: #35B3E5;
  outline: none;
}

/* ================
   FOOTER
================= */
footer {
  background: #fff;
  border-top: 1px solid #EFF1F5;
  padding: 48px 0 18px 0;
  margin-top: 46px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 154px;
}
.footer-nav a {
  color: #213A59;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 4px 2px;
  transition: color 0.2s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #35B3E5;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 236px;
  font-size: 0.96rem;
}
.footer-contact img {
  width: 17px; height: 17px;
  margin-right: 5px;
  vertical-align: middle;
}
.footer-copy {
  margin-top: 26px;
  font-size: 0.95rem;
  color: #879AB1;
  width: 100%;
  text-align: left;
}

/* Responsive: footer layout vertical on mobile */
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* =====================
   COOKIE CONSENT BANNER
===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #213A59;
  color: #fff;
  z-index: 900;
  width: 100vw;
  box-shadow: 0 -2px 16px rgba(33,58,89,0.10);
  padding: 16px 24px 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 1rem;
  transition: transform 0.35s;
}
.cookie-banner.hidden {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1;
  min-width: 180px;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: 18px;
  border: none;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.96rem;
  transition: background 0.17s, color 0.15s, box-shadow 0.18s;
  cursor: pointer;
}
.cookie-btn-accept {
  background: #35B3E5;
  color: #213A59;
}
.cookie-btn-accept:hover,
.cookie-btn-accept:focus {
  background: #213A59;
  color: #fff;
}
.cookie-btn-reject {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.cookie-btn-reject:hover,
.cookie-btn-reject:focus {
  background: #35B3E5;
  color: #213A59;
}
.cookie-btn-settings {
  background: transparent;
  color: #fff;
}
.cookie-btn-settings:hover,
.cookie-btn-settings:focus {
  color: #35B3E5;
  text-decoration: underline;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 910;
  background: #fff;
  color: #213A59;
  border-radius: 24px;
  box-shadow: 0 8px 48px rgba(33,58,89,0.15);
  padding: 34px 28px 22px 28px;
  max-width: 94vw;
  width: 394px;
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: cookieModalIn 0.33s cubic-bezier(0.41,0,0.56,1);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translate(-50%, -56%) scale(0.9); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal h2 {
  font-size: 1.29rem;
  margin-bottom: 14px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cookie-category .category-name {
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 23px;
  margin-left: 8px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #EFF1F5;
  border-radius: 14px;
  transition: background 0.2s;
}
.cookie-toggle input:checked + .slider {
  background: #35B3E5;
}
.slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 5px;
  bottom: 3.5px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 2px 6px rgba(53,179,229, 0.04);
}
.cookie-toggle input:checked + .slider:before {
  transform: translateX(18px);
}

/* Cookie modal buttons at bottom */
.cookie-modal .cookie-actions {
  gap: 13px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Overlay behind modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(33,58,89,0.33);
  z-index: 909;
  transition: opacity 0.22s;
}
.cookie-modal-backdrop.hidden {
  display: none;
  opacity: 0;
}

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

/* ================
   MEDIA QUERIES
================= */
@media (max-width: 900px) {
  .features-grid,
  .testimonial-slider,
  .card-grid,
  .post-grid,
  .content-grid,
  .contact-info {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-item, .testimonial-card, .card, .post-grid article {
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .section {
    padding: 28px 5px;
    margin-bottom: 30px;
    border-radius: 10px;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-wrapper {
    padding-right: 0;
    padding-left: 0;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.17rem;
  }
  h3 {
    font-size: 1rem;
  }
  .footer-logo img {
    width: 60px;
  }
}

/* On mobile, .text-image-section should be vertical */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ================
   ANIMATIONS
================= */
.btn-primary, .cookie-btn, .feature-item, .card, .testimonial-card, .mobile-menu {
  transition: background 0.18s, color 0.19s, box-shadow 0.18s, border 0.15s, transform 0.24s;
}
input[type="text"] {
  transition: border-color 0.22s;
}

/* ================
   ACCESSIBILITY
================= */
:focus { outline: 2px solid #35B3E5; outline-offset: 2px; }

/* Hide visually but accessible */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(1px,1px,1px,1px) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ================
   UNIQUE ELEMENTS
================= */
.star-rating img {
  filter: drop-shadow(0 1px 2px rgba(53,179,229,0.09));
}

/***** Ensure no grid or columns are used anywhere, only flexbox! *****/
