/* ==== CSS RESET / 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, 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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F5F8FA;
  color: #214874;
}
*, *:before, *:after { box-sizing: inherit; }
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none; border: none;
  background: none;
}

/* ==== BRAND FONTS ==== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  color: #214874;
  background: #F5F8FA;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -1px;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 18px; }
h2 { font-size: 1.6rem; margin-bottom: 14px; font-weight: 900; }
h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
p, li, a { font-size: 1rem; }
.subtitle { font-size: 1.1rem; color: #A4C639; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.5px; }
strong { font-weight: 700; }

/* ==== CONTAINER LAYOUTS ==== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* ==== SECTION SPACING ==== */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  width: 100%;
  background: #fff;
  padding: 0 0;
  box-shadow: 0 2px 12px 0 rgba(33, 72, 116, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
header > a img {
  height: 44px;
  padding: 10px 0 6px 0;
}
.main-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
.main-menu a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #214874;
  padding: 8px 8px;
  border-radius: 8px;
  transition: color 0.15s, background 0.2s;
}
.main-menu a:hover:not(.cta-btn) {
  color: #A4C639;
  background: rgba(33,72,116,0.07);
}
.main-menu .cta-btn {
  background: #A4C639;
  color: #214874;
  font-weight: 900;
  border-radius: 32px;
  padding: 10px 28px;
  margin-left: 18px;
  font-size: 1.08rem;
  box-shadow: 0 3px 16px 0 rgba(164,198,57,0.10);
  transition: background 0.15s, color 0.2s, transform 0.15s;
  border: 2px solid #A4C639;
}
.main-menu .cta-btn:hover, .cta-btn:focus {
  background: #214874;
  color: #fff;
  border: 2px solid #214874;
  transform: translateY(-2px) scale(1.03);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #214874;
  margin-left: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 9px;
  z-index: 140;
  transition: background 0.20s, color 0.20s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #F5F8FA;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: #fff;
  box-shadow: 0 8px 32px 0 rgba(33, 72, 116, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 28px 24px 28px;
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(0.90,0,0.30,1);
  z-index: 2000;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #214874;
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 18px 10px 10px;
  margin-bottom: 18px;
  border-radius: 8px;
  transition: background 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #A4C63922;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  color: #214874;
  font-size: 1.15rem;
  background: #F5F8FA;
  border-radius: 10px;
  padding: 15px 16px;
  margin-bottom: 4px;
  transition: background 0.18s, color 0.20s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A4C639;
  color: #214874;
}
@media (max-width: 1024px) {
  .main-menu {
    gap: 18px;
  }
  header .container {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .main-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ==== HERO + MAIN SECTIONS ==== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
  max-width: 700px;
}
.text-section > h2, .text-section > h3 { margin-bottom: 6px; }

.kontakt-info, .call-to-action {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 10px 0 rgba(33,72,116,0.06);
  padding: 20px 18px;
  margin: 18px 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kontakt-info p, .call-to-action p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

/* ==== FLEX LAYOUTS MANDATORY ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 3px 18px 0 rgba(33,72,116,0.09);
  transition: box-shadow 0.25s, transform 0.20s;
  padding: 28px 22px 22px 22px;
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(164,198,57,0.11);
  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;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin: 24px 0 0 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 14px 0 rgba(33,72,116,0.06);
  padding: 22px 24px 20px 22px;
  flex: 1 0 240px;
  min-width: 230px;
  max-width: 310px;
  transition: box-shadow 0.20s, transform 0.18s;
}
.feature-item img {
  width: 44px;
  height: 44px;
}
.feature-item h3 {
  font-size: 1.12rem;
  color: #A4C639;
  font-weight: 900;
  margin-bottom: 4px;
}
.feature-item p {
  color: #214874dd;
  font-size: 1rem;
}
.feature-item:hover {
  box-shadow: 0 8px 34px 0 rgba(164,198,57,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* ===== SERVICE LISTS, TRUST SIGNALS, FEATURE LISTS ===== */
.service-list, .feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0 22px 0;
}
.service-list li,
.feature-list li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  padding: 12px 16px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 9px 0 rgba(33,72,116,0.06);
  margin-bottom: 7px;
}
.service-list li img,
.feature-list li img {
  width: 28px;
  height: 28px;
  display: inline-block;
  margin-right: 6px;
}
.trust-signals ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  margin: 8px 0 0 0;
}
.trust-signals li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.97rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(164,198,57,0.09);
  padding: 10px 14px;
  color: #214874cc;
}
.trust-signals li img {
  width: 24px;
  height: 24px;
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(33,72,116,0.10);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 24px;
  min-width: 200px;
  max-width: 650px;
  transition: box-shadow 0.23s, transform 0.18s;
}
.testimonial-card blockquote {
  font-size: 1.13rem;
  color: #214874;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  border-left: 5px solid #A4C639;
  padding-left: 18px;
  margin-bottom: 0;
  background: none;
}
.testimonial-card div {
  color: #555;
  font-size: 1.01rem;
  font-weight: 500;
  margin-left: 8px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(164,198,57,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* ==== BUTTONS ==== */
.cta-btn {
  display: inline-block;
  background: #A4C639;
  color: #214874;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  border-radius: 30px;
  padding: 12px 32px;
  font-size: 1.1rem;
  margin: 12px 0 0 0;
  letter-spacing: 0.7px;
  border: 2px solid #A4C639;
  box-shadow: 0 4px 16px 0 rgba(164,198,57,0.08);
  transition: background 0.17s, color 0.14s, border 0.15s, transform 0.18s;
  cursor: pointer;
}
.cta-btn:focus,
.cta-btn:hover {
  background: #214874;
  color: #fff;
  border: 2px solid #214874;
  transform: translateY(-2px) scale(1.03);
}

button, .button {
  display: inline-block;
  cursor: pointer;
  border-radius: 8px;
  background: #A4C639;
  color: #214874;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 26px;
  border: 2px solid #A4C639;
  box-shadow: 0 2px 10px 0 rgba(164,198,57,0.09);
  transition: background 0.20s, color 0.18s, border 0.19s, transform 0.14s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: #214874;
  color: #fff;
  border: 2px solid #214874;
  transform: translateY(-1px);
}

/* ==== FOOTER ==== */
footer {
  background: #214874;
  color: #fff;
  padding: 44px 0 18px 0;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}
.footer-info strong { color: #A4C639; }
.footer-info a {
  color: #A4C639;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.17s;
}
.footer-info a:hover { color: #fff; }
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.footer-menu a {
  color: #A4C639;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  padding: 7px 10px;
  transition: background 0.13s, color 0.16s;
}
.footer-menu a:hover {
  background: #A4C639;
  color: #214874;
}
.footer-brand {
  font-size: 0.97rem;
  margin-top: 16px;
  letter-spacing: 1.5px;
  color: #A4C639;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #214874;
  color: #fff;
  z-index: 4000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 23px 28px;
  box-shadow: 0 -2px 16px 0 rgba(33,72,116,0.11);
  font-size: 1rem;
  opacity: 1;
  transition: opacity 0.25s, transform 0.3s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-consent-text {
  flex: 1 1 auto;
  margin-right: 18px;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #A4C639;
  color: #214874;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid #A4C639;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.17s, color 0.15s, border 0.13s, transform 0.13s;
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: #fff;
  color: #214874;
  border: 2px solid #fff;
  transform: translateY(-1px);
}
.cookie-btn.settings {
  background: #fff;
  color: #214874;
  border: 2px solid #A4C639;
}
.cookie-btn.settings:hover {
  background: #A4C639;
  color: #fff;
  border: 2px solid #fff;
}

/* ==== COOKIE MODAL POPUP ==== */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4100;
  background: rgba(33,72,116,0.39);
  align-items: center;
  justify-content: center;
  transition: background 0.22s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #214874;
  border-radius: 18px;
  min-width: 325px;
  max-width: 97vw;
  min-height: 200px;
  padding: 38px 32px 28px 32px;
  box-shadow: 0 6px 32px rgba(33,72,116,0.21);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: cookieModalIn 0.45s cubic-bezier(0.76,-0.05,0.29,1.10);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.38rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  margin-bottom: 8px;
  color: #214874;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 11px;
  gap: 16px;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  margin-left: 8px;
  font-size: 1rem;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #e2e2e2;
  border-radius: 26px;
  transition: background .2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #A4C639;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px 0 rgba(33,72,116,0.10);
  transition: transform 0.22s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
}

.cookie-modal .cookie-btn {
  margin-top: 18px;
  width: 100%;
}
.cookie-modal .btn-row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 6px;
}
@media (max-width: 700px) {
  .cookie-modal {
    padding: 21px 12px 14px 12px;
    min-width: 0;
  }
}

/* ========== Typography for legal pages ========== */
.text-section ul,
.text-section ol {
  margin-left: 18px;
  margin-bottom: 12px;
}
.text-section ul li,
.text-section ol li {
  list-style: disc inside;
  padding: 0.5em 0;
  font-size: 1rem;
}
.text-section h2,
.text-section h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  color: #214874;
}
.text-section a {
  color: #A4C639;
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.20s;
}
.text-section a:hover { color: #214874; }

/* ========== RESPONSIVE RULES ========== */
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
  }
  .feature-item {
    min-width: 180px;
    max-width: 100%;
    flex: 1 0 160px;
    padding: 15px 10px 14px 13px;
  }
  .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  section, .section {
    padding: 28px 0 0 0;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 10px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 13px;
  }
  .service-list, .feature-list {
    gap: 11px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 14px 10px;
    max-width: 98vw;
  }
  .footer-info {
    font-size: 0.97rem;
  }
  .footer-menu a {
    font-size: 0.94rem;
  }
  .footer-brand {
    font-size: 0.90rem;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 19px 8px;
    font-size: 0.98rem;
  }
  .cookie-buttons {
    gap: 6px;
    width: 100%;
    margin-top: 7px;
  }
}
@media (max-width: 650px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.14rem; }
}
@media (max-width: 540px) {
  .content-wrapper, .feature-item, .testimonial-card, .card {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}
@media (max-width: 510px) {
  .feature-item, .card {
    min-width: 98vw;
    max-width: 99vw;
  }
}

/* ====== ACCESSIBILITY ===== */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 3px solid #A4C639;
  outline-offset: 1px;
  box-shadow: 0 0 0 2px #A4C63944;
}

/* ==== Miscellaneous: Lists and hr ==== */
ul, ol {
  list-style: disc inside none;
  margin-left: 18px;
}
hr {
  margin: 20px 0;
  border: 0;
  border-top: 2.5px solid #A4C63944;
}

/* ======= Cards if Needed ======= */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ======= Miscellaneous Classes for Spacing & Utility ======= */
.m-0 { margin: 0!important; }
.mt-2 { margin-top: 2px; }
.mb-4 { margin-bottom: 4px; }
.mb-16 { margin-bottom: 16px; }
.pl-8 { padding-left: 8px; }
pb-12 { padding-bottom: 12px; }

/* ======= Animations & Microinteractions ======= */
.card, .feature-item, .testimonial-card, .cta-btn, .main-menu a, .cookie-btn {
  transition-property: box-shadow, color, background, border, transform;
  transition-duration: 0.2s;
}

/* ==== Geometric/Modern shapes as decorations (optional): You may add classes for shapes, e.g. .shape-bg if needed in HTML */

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