/* ==========================================================
   CSS RESET AND 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, menu, 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, 
main, 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;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  min-height: 100vh;
  background: #fff;
  color: #10336b;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  margin-bottom: 16px;
  color: #10336b;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.35rem; line-height: 1.25; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
p {
  margin-bottom: 16px;
  font-size: 1rem;
}
strong { font-weight: 700; }
em { font-style: italic; }

/* ==========================================================
   BRAND COLORS, FONTS, VARIABLES (w/ fallbacks)
   ========================================================== */
:root {
  --op-primary: #10336b;
  --op-secondary: #4fc3f7;
  --op-accent: #f9f871;
  --op-bg: #fff;
  --op-gray-light: #e9eef6;
  --op-gray-med: #afbacd;
  --op-gray-dark: #374165;
  --op-shadow: 0 6px 24px rgba(16,51,107,0.08), 0 1.5px 5px rgba(79,195,247,0.08);
  --op-radius: 18px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ==========================================================
   BODY & CONTAINER
   ========================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==========================================================
   TYPOGRAPHY, HEADINGS, TEXT
   ========================================================== */
.hero h1,
.section h1,
.section h2,
.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--op-primary);
  text-transform: none;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  color: var(--op-primary);
}
h4 {
  font-size: 1.1rem;
}

.text-section p,
.text-section li {
  font-size: 1.08rem;
  color: var(--op-gray-dark);
}

a {
  color: var(--op-primary);
  text-decoration: none;
  transition: color 0.18s cubic-bezier(0.4,0,0.2,1);
}
a:hover, a:focus {
  color: var(--op-secondary);
  outline: none;
}

/* ==========================================================
   HEADER, NAVIGATION, LOGO
   ========================================================== */
header {
  background: var(--op-bg);
  box-shadow: 0 2px 16px rgba(16,51,107,0.05);
  z-index: 100;
  width: 100%;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}

header img {
  height: 44px;
  margin-right: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.32px;
  font-size: 1.01rem;
  padding: 8px 13px;
  border-radius: 6px;
  color: var(--op-primary);
  position: relative;
  transition: color 0.18s, background 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--op-secondary);
  color: white;
}

.btn-primary {
  background: var(--op-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 14px;
  padding: 13px 34px;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(16,51,107,0.13);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  outline: none;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--op-secondary);
  color: var(--op-primary);
  box-shadow: 0 5px 18px rgba(16,51,107,0.19);
  transform: translateY(-2px) scale(1.04);
}

.mobile-menu-toggle {
  display: none;
  background: var(--op-secondary);
  color: var(--op-primary);
  border: none;
  font-size: 2.1rem;
  border-radius: 12px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.2s, color 0.18s, transform 0.14s;
  z-index: 120;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--op-primary);
  color: #fff;
  transform: scale(1.07);
}

/* =============================
   MOBILE MENU Styles & Animation
   ============================= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16,51,107,0.98);
  color: #fff;
  z-index: 1800;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4, 0.05, 0.5, 1.05);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  width: 54px;
  height: 54px;
  align-self: flex-end;
  margin: 16px 28px 0 0;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--op-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  text-align: center;
  padding: 12px 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 90vw;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--op-secondary);
  color: var(--op-primary);
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
  width: 100%;
  min-height: 320px;
  background: var(--op-secondary);
  color: var(--op-primary);
  padding: 60px 0 38px 0;
  display: flex;
  align-items: center;
  position: relative;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  gap: 24px;
  align-items: flex-start;
  color: var(--op-primary);
}
.hero h1 {
  color: var(--op-primary);
  font-size: 2.6rem;
}
.hero p {
  font-size: 1.15rem;
  color: var(--op-primary);
}
.hero .btn-primary {
  margin-top: 18px;
  background: var(--op-accent);
  color: var(--op-primary);
}
.hero .btn-primary:hover {
  background: #fff500;
  color: var(--op-secondary);
}

/* ==========================================================
   CTA SECTION
   ========================================================== */
.cta-section {
  background: var(--op-accent);
  padding: 52px 0 52px 0;
  margin-bottom: 60px;
}
.cta-section .content-wrapper {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.cta-section h2 {
  color: var(--op-primary);
  font-size: 2.1rem;
}

.cta-section .btn-primary {
  background: var(--op-primary);
  color: #fff;
  font-size: 1.06rem;
  box-shadow: 0 3px 13px rgba(16,51,107,0.11);
  margin-top: 20px;
}
.cta-section .btn-primary:hover {
  background: var(--op-secondary);
  color: var(--op-primary);
}

/* ==========================================================
   FEATURES GRID, CARDS, SERVICE BLOCKS
   ========================================================== */
.features-grid,
.article-grid,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 26px 0;
  justify-content: flex-start;
}
.feature-block,
.service-block,
.article-preview {
  background: var(--op-bg);
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
  padding: 28px 22px 26px 22px;
  min-width: 240px;
  flex: 1 1 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.17s;
  border: 2.5px solid transparent;
  position: relative;
}
.feature-block:hover, .service-block:hover, .article-preview:hover {
  box-shadow: 0 7px 28px rgba(16,51,107,0.16);
  border-color: var(--op-secondary);
  transform: translateY(-6px) scale(1.034);
  z-index: 3;
}
.feature-block img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.feature-block h3, .service-block h3, .article-preview h3 {
  color: var(--op-primary);
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.feature-block p, .service-block p, .article-preview p {
  color: var(--op-gray-dark);
  font-size: 1rem;
}

.article-preview a {
  display: inline-block;
  margin-top: 6px;
  color: var(--op-secondary);
  font-weight: 700;
  transition: color 0.16s;
}
.article-preview a:hover { color: var(--op-primary); }

/* ==========================================================
   LISTS (Inside Cards, Service Items etc.)
   ========================================================== */
ul, ol {
  font-size: 1rem;
  padding-left: 15px;
  color: var(--op-primary);
  margin-bottom: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
}

.service-list ul, .service-block ul {
  margin: 8px 0 0 10px;
  color: var(--op-gray-dark);
}

.contact-list {
  margin: 16px 0 20px 0;
  padding-left: 0;
  color: var(--op-primary);
}
.contact-list li {
  margin-bottom: 8px;
  list-style: none;
}

/* ==========================================================
   CARDS, CARD CONTAINERS, FLEX UTILITIES
   ========================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 30px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--op-bg);
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 270px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 10px 32px rgba(16,51,107,0.18);
  transform: translateY(-3px) scale(1.02);
}
.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;
}

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

/* ==========================================================
   TESTIMONIALS: Bold and High Contrast
   ========================================================== */
.testimonials {
  margin-bottom: 60px;
  padding: 40px 0;
  background: var(--op-gray-light);
}
.testimonials .content-wrapper {
  align-items: flex-start;
  gap: 27px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #10336b;
  box-shadow: var(--op-shadow);
  border-radius: 17px;
  padding: 20px 32px;
  margin-bottom: 20px;
  border-left: 8px solid var(--op-secondary);
  min-width: 230px;
  max-width: 520px;
  transition: box-shadow 0.13s, border-color 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 5px 25px rgba(79,195,247,0.19);
  border-color: var(--op-primary);
}
.testimonial-card p {
  font-size: 1.07rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: #1c2e57;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--op-gray-dark);
  font-style: italic;
}

/* ==========================================================
   CONTACT FORM MOCK (FOR KONTAKT PAGE ONLY)
   ========================================================== */
.contact-form-mock {
  background: var(--op-gray-light);
  box-shadow: 0 2px 8px rgba(16,51,107,0.11);
  border-radius: 14px;
  padding: 22px 26px 18px 26px;
  margin-top: 10px;
}
.contact-form-mock h3 {
  margin-bottom: 10px;
  font-size: 1.13rem;
  color: var(--op-primary);
}
.contact-form-mock p {
  color: var(--op-gray-dark);
  font-size: 1rem;
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
  background: var(--op-primary);
  color: #fff;
  padding: 38px 0 16px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer img {
  height: 38px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1rem;
  text-decoration: underline;
  margin-bottom: 8px;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--op-accent);
}
.footer-cta {
  margin-left: auto;
  margin-right: 40px;
}
.footer-cta .btn-primary {
  margin: 0;
  background: var(--op-accent);
  color: var(--op-primary);
  font-weight: 800;
}
.footer-cta .btn-primary:hover {
  background: var(--op-secondary);
  color: #fff;
}
footer p {
  flex-basis: 100%;
  width: 100%;
  margin-top: 25px;
  font-size: 0.98rem;
  color: #fafdff;
  text-align: left;
  letter-spacing: 0px;
}

/* ==========================================================
   NEWSLETTER SIGNUP (BLOG)
   ========================================================== */
.newsletter-signup {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1.5px 5px rgba(16,51,107,0.11);
  padding: 32px 28px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
}
.newsletter-signup p {
  color: var(--op-primary);
  font-size: 1.11rem;
}

/* ==========================================================
   RESPONSIVE DESIGN - Mobile first, Flexbox only
   ========================================================== */
@media (max-width: 991px) {
  .main-nav {
    gap: 12px;
  }
  .features-grid, .article-grid, .service-list, .card-container, .content-grid {
    gap: 15px;
  }
  .footer-nav, footer .container {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 7px;
    padding: 11px 24px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-cta {
    margin: 0 auto;
  }
  .features-grid, .card-container, .article-grid, .service-list, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-block, .service-block, .article-preview {
    max-width: 100%;
    min-width: unset;
    width: 100%;
  }
  .content-wrapper {
    gap: 13px;
  }
  .hero {
    min-height: 210px;
    padding: 38px 0 22px 0;
  }
  .hero .content-wrapper {
    gap: 13px;
  }
  .testimonials .content-wrapper {
    gap: 15px;
  }
  .testimonial-card {
    padding: 14px 13px;
    min-width: unset;
    max-width: 100%;
  }
  .cta-section {
    padding: 38px 0 36px 0;
  }
  .newsletter-signup {
    padding: 20px 7px 20px 7px;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  header .container, footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
  }
  footer {
    padding: 28px 0 8px 0;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.12rem; }
  .footer-cta .btn-primary {
    width: 100%;
  }
  .feature-block, .service-block, .article-preview,
  .testimonial-card, .contact-form-mock {
    padding: 12px 8px;
  }
}

/* ==========================================================
   SPACING, SHADOWS, SHAPES, MICRO-INTERACTIONS
   ========================================================== */
.feature-block, .service-block, .card, .testimonial-card, .newsletter-signup, .contact-form-mock, .article-preview {
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
  margin-bottom: 20px;
}

.btn-primary, .feature-block, .service-block, .card, .testimonial-card, .newsletter-signup, .contact-form-mock, .article-preview {
  transition: box-shadow 0.17s, background 0.12s, color 0.13s, transform 0.12s, border-color 0.12s;
}

.feature-block:hover, .service-block:hover, .testimonial-card:hover, .newsletter-signup:hover, .article-preview:hover {
  transform: translateY(-3px) scale(1.02);
}

/* ==========================================================
   COOKIE CONSENT BANNER & MODAL STYLES
   ========================================================== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 96vw;
  max-width: 700px;
  background: #fff;
  color: #10336b;
  box-shadow: 0 -3px 16px rgba(16,51,107,0.16);
  border-radius: 16px 16px 0 0;
  padding: 25px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 2900;
  animation: cookieBannerAppear 0.55s cubic-bezier(0.5,0,0,1) 0.18s backwards;
}
.cookie-banner p {
  color: #10336b;
  font-size: 1rem;
  flex: 2 1 70%;
  margin: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: var(--op-secondary);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 8px 20px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, transform 0.13s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--op-primary);
  color: var(--op-accent);
}

@keyframes cookieBannerAppear {
  from { opacity: 0; transform: translate(-50%, 50px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* -- Cookie modal -- */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  z-index: 3001;
  background: rgba(16,51,107,.76);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: cmFade 0.44s cubic-bezier(0.6,0,0.4,1) backwards;
}
@keyframes cmFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 35px 24px 24px 24px;
  border-radius: 17px 17px 0 0;
  box-shadow: 0 9px 36px rgba(16,51,107,.24);
  min-width: 290px;
  max-width: 96vw;
  width: 440px;
  margin-bottom: 32px;
  animation: cmAppear 0.38s cubic-bezier(0.6,0,0.4,1.13) backwards;
}
@keyframes cmAppear {
  from { transform: translateY(100px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.23rem;
  color: var(--op-primary);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--op-primary);
}
.cookie-toggle {
  width: 42px;
  height: 24px;
  background: var(--op-gray-light);
  border-radius: 24px;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
  margin-right: 9px;
}
.cookie-toggle.on {
  background: var(--op-secondary);
}
.cookie-toggle.off {
  background: var(--op-gray-light);
}
.cookie-toggle .cookie-switch {
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.21s cubic-bezier(0.5,0,0,1);
  box-shadow: 0 1px 3px rgba(16,51,107,0.09);
}
.cookie-toggle.on .cookie-switch {
  left: 20px;
}

.cookie-modal-footer {
  display: flex;
  gap: 13px;
  margin-top: 22px;
  justify-content: flex-end;
}
.cookie-modal-footer button {
  padding: 9px 19px;
}

@media (max-width:480px){
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 11px; padding: 16px 8px;}
  .cookie-modal { width: 99vw; padding: 18px 4vw 17px 4vw; margin-bottom: 6vw; }
}

/* ==========================================================
   ACCESSIBILITY/HOVER/FOCUS
   ========================================================== */
a:focus-visible, .btn-primary:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--op-accent);
  outline-offset: 2.5px;
}

::-webkit-input-placeholder { color: #afbacd; }
::-moz-placeholder { color: #afbacd; }
:-ms-input-placeholder { color: #afbacd; }
::placeholder { color: #afbacd; }

/* ==========================================================
   PRINT/UTILITY CLASSES (if needed in future)
   ========================================================== */
@media print { .btn-primary, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; } }

/* ==========================================================
   END OF CSS
   ========================================================== */
