/* ------------------------------------------------------
   CSS RESET & BASELINE (Normalize + Box-Sizing)
---------------------------------------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1A3A5B;
  background: linear-gradient(135deg, #B3C5D7 0%, #ffffff 100%);
  min-height: 100vh;
  line-height: 1.65;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #1A3A5B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F7C948;
  outline: none;
}
ul, ol {
  margin: 0 0 16px 0;
  padding-left: 20px;
  list-style-position: inside;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #1A3A5B;
}
h1 {font-size: 2.25rem; margin-bottom: 24px;}
h2 {font-size: 1.625rem; margin-bottom: 20px;}
h3 {font-size: 1.175rem; margin-bottom: 12px;}
h4, h5, h6 {font-size: 1rem;}
p {margin-bottom: 16px; color: #1A3A5B;}
strong {color: #1A3A5B; font-weight: 700;}

/* ------------------------------------------------------
   FLEXBOX-BASED CONTAINER UTILITIES
---------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(26,58,91,0.06);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 280px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(26,58,91,0.08);
  padding: 24px;
  transition: box-shadow 0.2s;
  position: relative;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(26,58,91,0.13);
  z-index: 1;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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-top: 14px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #F9FAFB;
  border-left: 6px solid #B3C5D7;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(26,58,91,0.06);
  color: #1A3A5B;
  transition: border-color 0.2s;
}
.testimonial-card:hover {
  border-color: #F7C948;
}
.feature-item, .service-card, .device-category-tabs a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------------------*/
header {
  background: #1A3A5B;
  border-bottom: 1.5px solid #B3C5D7;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1001;
}
nav[aria-label="Hauptnavigation"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 74px;
  padding: 12px 0;
}
nav[aria-label="Hauptnavigation"] > a img {
  height: 38px;
  width: auto;
  margin-right: 18px;
}
nav[aria-label="Hauptnavigation"] ul {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
}
nav[aria-label="Hauptnavigation"] ul li a {
  font-family: 'Monteserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
}
nav[aria-label="Hauptnavigation"] ul li a:hover, nav[aria-label="Hauptnavigation"] ul li a:focus {
  background: #B3C5D7;
  color: #1A3A5B;
}
.nav-cta {
  background: #F7C948;
  color: #1A3A5B;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  padding: 10px 22px;
  margin-left: 18px;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(26,58,91,0.09);
}
.nav-cta:hover, .nav-cta:focus {
  background: #1A3A5B;
  color: #F7C948;
  box-shadow: 0 4px 16px rgba(26,58,91,0.16);
}

/* Burger button - always visible on mobile, hidden on desktop */
.mobile-menu-toggle {
  display: none;
  background: #B3C5D7;
  color: #1A3A5B;
  font-size: 2.1rem;
  padding: 6px 18px 10px 18px;
  margin-left: auto;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 1001;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F7C948;
  color: #1A3A5B;
}

/* ------------------------------------------------------
   MOBILE MENU STYLES
---------------------------------------------------------*/
.mobile-menu {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #1A3A5B;
  color: #fff;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.63,.1,.23,1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  font-size: 2.3rem;
  border: none;
  margin: 15px 28px 0 0;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #F7C948; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px 34px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #fff;
  font-weight: 500;
  padding: 12px 0;
  border-radius: 8px;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: #1A3A5B;
  background: #F7C948;
}

/* Hide navigation on mobile, show burger button */
@media (max-width: 1020px) {
  nav[aria-label="Hauptnavigation"] ul,
  nav[aria-label="Hauptnavigation"] .nav-cta {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ------------------------------------------------------
   HERO SECTION & CTAs
---------------------------------------------------------*/
section:first-of-type {
  background: linear-gradient(110deg, #B3C5D7 0%, #fff 120%);
  box-shadow: none;
  margin-top: 0;
  margin-bottom: 48px;
  border-radius: 0 0 36px 36px;
  padding-top: 54px;
  padding-bottom: 54px;
}
.cta-primary, .cta-secondary, button.cta-primary, button.cta-secondary {
  border-radius: 10px;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.18rem;
  padding: 14px 30px;
  border: none;
  cursor: pointer;
  outline: none;
  transition: color 0.18s, background 0.18s, box-shadow 0.22s, transform 0.15s;
  display: inline-block;
  margin-top: 8px;
}
.cta-primary, button.cta-primary {
  background: #1A3A5B;
  color: #fff;
  box-shadow: 0 2px 10px rgba(26,58,91,0.06);
}
.cta-primary:hover, .cta-primary:focus, button.cta-primary:hover, button.cta-primary:focus {
  background: #F7C948;
  color: #1A3A5B;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(26,58,91,0.14);
}
.cta-secondary, button.cta-secondary {
  background: #F7C948;
  color: #1A3A5B;
  border: 2px solid #F7C948;
  box-shadow: 0 2px 8px rgba(26,58,91,0.05);
}
.cta-secondary:hover, .cta-secondary:focus, button.cta-secondary:hover, button.cta-secondary:focus {
  background: #1A3A5B;
  color: #F7C948;
  border-color: #B3C5D7;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 16px rgba(26,58,91,0.11);
}

/* ------------------------------------------------------
   FEATURES / LISTS / SERVICE CARDS
---------------------------------------------------------*/
ul li, ol li {
  margin-bottom: 10px;
  color: #314963;
  font-size: 1.05rem;
  line-height: 1.6;
  display: flex;
  gap: 12px;
  align-items: center;
}
ul li img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(26,58,91,0.09);
  padding: 32px 22px 26px 22px;
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border 0.18s;
}
.service-card:hover {
  box-shadow: 0 10px 32px rgba(26,58,91,0.14);
  border: 2px solid #F7C948;
}
.service-card h3 {
  color: #1A3A5B;
  font-size: 1.23rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 10px;
  margin-top: 0;
}
.service-card a {
  color: #1A3A5B;
  font-weight: 600;
  text-decoration: underline;
  margin-top: 8px;
  transition: color 0.18s;
}
.service-card a:hover, .service-card a:focus {
  color: #F7C948;
}

.device-category-tabs {
  display: flex;
  gap: 12px;
  margin: 14px 0 8px 0;
}
.device-category-tabs a {
  padding: 10px 20px;
  background: #B3C5D7;
  border-radius: 8px;
  color: #1A3A5B;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
.device-category-tabs a[aria-current="page"], .device-category-tabs a.active {
  background: #1A3A5B;
  color: #FFF;
}
.device-category-tabs a:hover, .device-category-tabs a:focus {
  background: #F7C948;
  color: #1A3A5B;
}

/* ------------------------------------------------------
   TABLES (Devices Comparison)
---------------------------------------------------------*/
table {
  width: 100%;
  border-collapse: collapse;
  background: #FFF;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(26,58,91,0.04);
}
thead {
  background: #B3C5D7;
}
th, td {
  padding: 16px 16px;
  text-align: left;
  font-size: 1rem;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  color: #1A3A5B;
  font-weight: bold;
}
tbody tr {
  border-bottom: 1px solid #E1E9F0;
}
tbody tr:last-child {
  border-bottom: none;
}
td {
  background: #fff;
}
tbody tr td:first-child {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #1A3A5B;
}
table button.cta-secondary {
  padding: 6px 17px;
  font-size: 1rem;
}
table img {
  vertical-align: middle;
}

/* ------------------------------------------------------
   FILTER FORM
---------------------------------------------------------*/
.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 18px 0 16px 0;
}
.filter-form label {
  font-weight: 500;
}
.filter-form input[type="text"] {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid #B3C5D7;
  font-size: 1rem;
  outline: none;
  margin-right: 4px;
  min-width: 180px;
  transition: border 0.16s;
}
.filter-form input[type="text"]:focus {
  border-color: #F7C948;
}
.filter-form button.cta-primary {
  margin-top: 0;
  font-size: 1rem;
  padding: 8px 22px;
}

/* ------------------------------------------------------
   FOOTER
---------------------------------------------------------*/
footer {
  background: #1A3A5B;
  color: #fff;
  padding: 0 0 18px 0;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
  padding: 36px 0 0 0;
}
.footer-main img {
  width: 52px;
  height: auto;
  margin-bottom: 18px;
}
.footer-main ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-left: 0;
}
.footer-main ul li a {
  color: #fff;
  font-size: 1rem;
  transition: color 0.17s;
}
.footer-main ul li a:hover, .footer-main ul li a:focus {
  color: #F7C948;
}
.footer-contact p {
  font-size: 0.98rem;
  color: #B3C5D7;
  margin-bottom: 7px;
}
.footer-contact a {
  color: #F7C948;
  font-weight: 600;
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ------------------------------------------------------
   RESPONSIVE DESIGN
---------------------------------------------------------*/
@media (max-width: 1020px) {
  .container {
    padding: 0 10px;
  }
  nav[aria-label="Hauptnavigation"] {
    gap: 4px;
  }
  .service-grid, .card-container, .content-grid, .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .section { padding: 22px 8px; }
  .container { padding: 0 6px; }
  .footer-main {
    padding-top: 18px;
  }
  .content-wrapper { gap: 14px; }
  .testimonial-list {
    gap: 14px;
  }
  .testimonial-card {
    padding: 13px 10px;
    border-radius: 13px;
  }
  .card, .service-card {
    padding: 16px 8px 13px 8px;
    border-radius: 12px;
    min-width: 0;
  }
  .text-image-section,
  .content-grid,
  .card-container,
  .service-grid {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .device-category-tabs {
    flex-direction: column;
    gap: 7px;
  }
  .mobile-menu {
    padding-top: 0;
  }
}

/* Ensure no sticking out for cards */
@media (max-width: 500px) {
  .card, .service-card { padding: 8px 2px 7px 2px; }
}

/* ------------------------------------------------------
   ACCESSIBILITY & FOCUS
---------------------------------------------------------*/
a:focus, button:focus, input:focus {
  outline: 2px solid #F7C948;
  outline-offset: 0.5px;
  z-index: 10;
}

/* ------------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
---------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  color: #1A3A5B;
  box-shadow: 0 -2px 16px rgba(26,58,91,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 8px 18px 8px;
  gap: 16px;
  z-index: 3000;
  animation: cookieslidein 0.6s cubic-bezier(.25,.85,.41,1);
}
@keyframes cookieslidein {
  0% { transform: translateY(100%); opacity: 0; }
  80% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #1A3A5B;
  font-size: 1rem;
  margin-bottom: 0;
  text-align: center;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.cookie-actions button {
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 16px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.14s, color 0.14s;
}
.cookie-actions .accept {
  background: #1A3A5B;
  color: #FFF;
}
.cookie-actions .accept:hover, .cookie-actions .accept:focus {
  background: #F7C948;
  color: #1A3A5B;
}
.cookie-actions .reject {
  background: #B3C5D7;
  color: #1A3A5B;
}
.cookie-actions .reject:hover, .cookie-actions .reject:focus {
  background: #F7C948;
  color: #1A3A5B;
}
.cookie-actions .settings {
  background: #F7C948;
  color: #1A3A5B;
}
.cookie-actions .settings:hover, .cookie-actions .settings:focus {
  background: #1A3A5B;
  color: #F7C948;
}

/* Cookie modal popup */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(26,58,91,0.45);
  z-index: 3500;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  transition: background 0.2s;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 410px;
  width: 95vw;
  padding: 40px 26px 26px 26px;
  box-shadow: 0 6px 36px rgba(26,58,91,0.14);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookiemodalscale 0.32s cubic-bezier(.44,.9,.56,1.05);
}
@keyframes cookiemodalscale {
  0% { transform: scale(0.75); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.35rem;
  margin-bottom: 2px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
}
.cookie-category label {
  font-weight: 500;
  color: #1A3A5B;
}
.cookie-category input[type="checkbox"] {
  accent-color: #F7C948;
  width: 18px;
  height: 18px;
  border-radius: 4px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 16px;
  border-radius: 7px;
  border: none;
  font-weight: 600;
  background: #B3C5D7;
  color: #1A3A5B;
  cursor: pointer;
}
.cookie-modal-actions .accept {
  background: #F7C948;
  color: #1A3A5B;
}
.cookie-modal-actions .close {
  background: #fff;
  color: #1A3A5B;
  border: 1.5px solid #B3C5D7;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #1A3A5B;
  color: #F7C948;
}

/* ------------------------------------------------------
   MISC SPACING & UI DETAILS
---------------------------------------------------------*/
::-webkit-scrollbar {
  width: 8px;
  background: #B3C5D7;
}
::-webkit-scrollbar-thumb {
  background: #1A3A5B;
  border-radius: 4px;
}

/* Spacing helpers */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.pb-20 { padding-bottom: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.pt-24 { padding-top: 24px !important; }

hr {
  border: none;
  border-top: 1.5px solid #B3C5D7;
  margin: 36px 0 30px 0;
}

/* ------------------------------------------------------
   PRINT STYLES (Hide nav/modals/etc on print)
---------------------------------------------------------*/
@media print {
  .mobile-menu,
  .mobile-menu-toggle,
  .cookie-banner,
  .cookie-modal {
    display: none !important;
  }
  nav, footer {
    background: #fff !important;
    color: #1A3A5B !important;
  }
}
