/* ----------------------------------------------------- */
/* CSS RESET & NORMALIZE (Safe for German font stacks)   */
/* ----------------------------------------------------- */
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;
  font-family: 'Roboto', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  background: #F5F5F5;
  color: #143560;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
*:focus-visible {
  outline: 2px solid #1868AE;
  outline-offset: 2px;
}

/* Font-family for display and headings */
h1, h2, h3, h4, h5, h6, .cta-btn, nav > a, .mobile-nav a {
  font-family: 'Montserrat', Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

/* Typography Hierarchy */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: #143560;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #143560;
}
h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 18px;
}
h4,h5,h6 { font-weight: 600; }
p, li, dd {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

strong {
  font-weight: 700;
  color: #1868AE;
}

/* Container & Layout Structure */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(20,53,96,0.05);
  transition: box-shadow 0.3s;
}
section:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  section {
    padding: 28px 8px;
    margin-bottom: 36px;
    border-radius: 14px;
  }
}

/* Header and Navigation */
header {
  background: linear-gradient(90deg, #1868AE 0%, #48A9E6 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(20,53,96,0.06);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.cta-btn {
  background: linear-gradient(90deg, #1868AE 70%, #48A9E6 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 22px;
  padding: 10px 30px;
  box-shadow: 0 4px 16px rgba(24,104,174,0.08);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  margin-left: 20px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #143560 70%, #1868AE 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 6px 20px rgba(24,104,174,0.13);
  text-decoration: none;
}
header img[alt*="CattaOphio"] {
  height: 44px;
  width: auto;
  margin-right: 24px;
  vertical-align: middle;
}

/* Hamburger Menu Styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  padding: 0 12px;
  margin-left: auto;
  cursor: pointer;
  transition: background .18s, color .18s;
  z-index: 99;
}
.mobile-menu-toggle:focus {
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

@media (max-width: 1020px) {
  header .container nav, header .container .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 360px;
  height: 100vh;
  background: linear-gradient(135deg, #1868AE 75%, #48A9E6 100%);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.33,.89,.56,1.01);
  z-index: 101;
  box-shadow: -8px 0 32px rgba(20,53,96,0.21);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 20px 20px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
  padding: 5px 7px;
  transition: background 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 8px 0 8px 0;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: rgba(255,255,255,0.16);
  color: #F5F5F5;
}

@media (max-width: 1020px) {
  .mobile-menu {
    display: flex;
  }
  header .container {
    padding: 12px 10px;
  }
}
@media (max-width: 480px) {
  .mobile-menu {
    max-width: 100vw;
    padding: 18px 8px 10px 18px;
  }
}

/* Overlay to block content when menu open */
body.mobile-menu-open::before {
  content: '';
  display: block;
  position: fixed;
  z-index: 100;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(20, 53, 96, 0.22);
  pointer-events: all;
  transition: opacity 0.3s;
}
body.mobile-menu-open {
  overflow: hidden;
}

/* Footer */
footer {
  background: linear-gradient(90deg, #143560 80%, #1868AE 100%);
  color: #fff;
  padding: 32px 0 18px 0;
  margin-top: 30px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
footer nav a {
  color: #F5F5F5;
  font-weight: 500;
  font-size: 1rem;
  padding: 5px 11px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}
.footer-social img {
  height: 30px;
  width: 30px;
  filter: drop-shadow(0 2px 8px rgba(24,104,174,0.09));
  cursor: pointer;
  transition: filter 0.18s;
}
.footer-social img:hover { filter: drop-shadow(0 2px 18px #48A9E6); }
.footer-legal {
  margin-top: 14px;
  color: #D7E5F7;
}
footer small {
  font-size: 0.93rem;
  opacity: 0.81;
}

/* Section Spacing (MANDATORY) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px 0 rgba(24,104,174,0.07);
  padding: 30px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 10px 35px rgba(20,53,96,0.17);
  transform: translateY(-4px) scale(1.01);
}

.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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #F5F5F5;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(20,53,96,0.05);
  color: #143560;
  font-size: 1.11rem;
  font-weight: 500;
  min-width: 220px;
  max-width: 520px;
  flex: 1 1 280px;
  transition: box-shadow .17s;
}
.testimonial-card p {
  color: #143560;
  font-size: 1.05rem;
  margin-bottom: 0;
  text-align: center;
}
.testimonial-card span {
  color: #1868AE;
  font-size: 0.98rem;
  align-self: center;
}

@media (max-width: 980px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .text-image-section, .content-grid, .card-container {
    flex-direction: column;
    align-items: stretch !important;
    gap: 16px;
  }
  .testimonial-card { max-width: 100%; }
}

/* Feature Items */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Content Wrapper Consistency */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
ul, ol {
  margin-bottom: 12px;
}
ul > li, ol > li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.04rem;
  min-height: 26px;
}
ul > li img, ol > li img {
  height: 24px;
  width: 24px;
  margin-right: 7px;
  flex-shrink: 0;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section ul {
  margin-left: 0;
  padding-left: 0;
}

/* CTA Banner Section */
.cta-banner {
  background: linear-gradient(90deg, #48A9E6 40%, #1868AE 90%);
  color: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 4px 32px rgba(24,104,174,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
}
.cta-banner h2 { color: #fff; font-size: 1.6rem; margin-bottom: 0; }
.cta-banner .cta-btn {
  margin-left: 0;
  background: #fff;
  color: #1868AE;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 10px rgba(24,104,174,0.08);
}
.cta-banner .cta-btn:hover, .cta-banner .cta-btn:focus {
  background: #1868AE;
  color: #fff;
  border: 1.5px solid #fff;
}

@media (max-width: 768px) {
  .cta-banner {
    padding: 22px 6px;
    border-radius: 13px;
  }
  .cta-banner h2 { font-size: 1.08rem; }
}

/* Table Styling */
table {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #F5F5F5;
  margin-bottom: 24px;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(20,53,96,0.10);
}
th, td {
  padding: 13px 14px;
  text-align: left;
}
th {
  background: #1868AE;
  color: #fff;
  font-weight: 700;
  font-size: 1.08rem;
}
td {
  border-bottom: 1px solid #e0e9f1;
  color: #143560;
}
tr:last-child td { border-bottom: none; }

/* DL FAQ etc. */
dl {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
dt {
  font-weight: 700;
  color: #1868AE;
  margin-bottom: 2px;
}
dd {
  margin-bottom: 8px;
  margin-left: 0;
  color: #143560;
}

/* Micro-interactions: Buttons */
button,
input[type="button"],
input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  border: none;
  border-radius: 22px;
  padding: 11px 30px;
  background: linear-gradient(90deg, #1868AE 60%, #48A9E6 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(24,104,174,0.09);
  transition: background 0.15s, transform 0.14s, box-shadow 0.15s;
}
button:hover, button:focus, input[type="button"]:hover, input[type="submit"]:hover {
  background: linear-gradient(90deg, #143560 60%, #1868AE 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 22px rgba(24,104,174,0.18);
}


/* Responsive Typography */
@media (max-width: 660px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.13rem; }
  .cta-banner h2 {
    font-size: 1rem;
  }
  .cta-btn, button, input[type="button"], input[type="submit"] {
    font-size: 0.98rem;
    padding: 10px 16px;
  }
  th, td { font-size: 0.93rem; }
  .testimonial-card {
    font-size: 0.95rem;
    padding: 15px 10px;
  }
}

/* Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -4px 25px rgba(20,53,96,0.11), 0 1px 0 #D7E5F7;
  padding: 24px 16px 22px 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s cubic-bezier(.44,1.21,.49,.99);
}
.cookie-banner.hide {
  transform: translateY(140%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner p {
  color: #143560;
  font-size: 1rem;
  margin-bottom: 0;
  text-align: center;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  background: linear-gradient(90deg, #1868AE 80%, #48A9E6 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 16px;
  padding: 8px 22px;
  font-weight: 700;
  margin: 0 2px;
  box-shadow: 0 1px 6px rgba(24,104,174,0.06);
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: linear-gradient(90deg, #143560 80%, #1868AE 100%);
  color: #fff;
}
.cookie-btn.reject {
  background: linear-gradient(90deg, #DE4141, #CD5B7D);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: linear-gradient(90deg, #AB2B29, #953F61);
}
.cookie-btn.settings {
  background: #F5F5F5;
  color: #1868AE;
  border: 1.5px solid #1868AE;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #D7E5F7;
  color: #143560;
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,53,96,0.24);
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  transition: background 0.2s;
}
.cookie-modal-overlay.open {
  display: flex;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 0 38px rgba(20,53,96,0.13);
  padding: 30px 28px 22px 28px;
  min-width: 300px;
  max-width: 480px;
  margin: 32px auto 0 auto;
  color: #143560;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: pop-up 0.38s cubic-bezier(.42,1.22,.48,.97);
}
@keyframes pop-up {
  0% { transform: translateX(0) translateY(80px) scale(0.93); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: #1868AE;
  text-align: left;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 500;
  color: #143560;
}
.cookie-modal-category input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: #1868AE;
  margin-right: 2px;
}
.cookie-modal-category .always-enabled {
  color: #1868AE;
  font-weight: 600;
  margin-left: 5px;
  font-size: 0.98rem;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 16px;
  background: none;
  color: #1868AE;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 50%;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F5F5F5;
  color: #143560;
}

@media (max-width: 660px) {
  .cookie-modal {
    max-width: 98vw;
    padding: 18px 6px 10px 6px;
    border-radius: 12px 12px 0 0;
  }
}

/* Links in text */
a {
  color: #1868AE;
  transition: color 0.17s;
}
a:hover, a:focus { color: #143560; text-decoration: underline; }
.text-section a {
  font-weight: 500;
  color: #1868AE;
}
.text-section a:hover, .text-section a:focus { color: #143560; }

/* Misc Spacing Rules */
main { min-height: 52vh; }

.section + .section { margin-top: 0; }

.content-wrapper + .cta-btn {
  margin-top: 18px;
}
sticky, .sticky {
  position: sticky;
}

/* Prevent overlap and ensure spacing (critical) */
.card, .testimonial-card, .feature-item, .content-grid > *, .card-container > * {
  margin-bottom: 20px;
}

@media (max-width: 660px) {
  .card, .testimonial-card { padding: 10px 8px; }
}

/* --- Utility classes for spacing --- */
.mt-32 { margin-top: 32px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-8  { margin-top: 8px  !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-8  { margin-bottom: 8px  !important; }


/* ------------------------------------------------------------ */
/* END OF CSS                                                   */
/* ------------------------------------------------------------ */
