/* RESET & BASELINE NORMALIZATION */
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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F5F5; /* secondary */
  color: #23293C;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
a { color: #2C3A64; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #E9A01E; }
img { max-width: 100%; display: block; height: auto; }
ul, ol { padding-left: 24px; }
hr { border: none; border-top: 1px solid #D0D2DA; margin: 32px 0; }

/* TYPOGRAPHY HIERARCHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2C3A64; /* Brand Primary */
  font-weight: 700;
  letter-spacing: 0.015em;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; margin-top: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; margin-top: 12px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; margin-top: 8px; font-weight: 600; }
p, ul, ol, dl, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 18px;
  color: #23293C;
}
blockquote {
  font-style: italic;
  color: #2C3A64;
  background: #ECF1F7;
  padding: 16px 28px;
  border-left: 4px solid #E9A01E;
  margin-bottom: 16px;
}
b, strong {
  font-weight: 700;
}

/* LAYOUT BASICS */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 16px rgba(44, 58, 100, 0.07);
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  border-bottom: 1px solid #D0D2DA;
  box-shadow: 0 2px 8px rgba(44, 58, 100, 0.04);
  position: relative;
  z-index: 1001;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 8px 0;
  min-height: 70px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.main-nav > a {
  color: #2C3A64;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav > a:hover, .main-nav > a:focus {
  background: #ECF1F7;
  color: #E9A01E;
}
.main-nav > a.cta-btn {
  background: #2C3A64;
  color: #fff !important;
  border: none;
  padding: 10px 24px;
  border-radius: 7px;
  font-family: inherit;
  transition: background 0.2s, box-shadow 0.2s;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(44,58,100,0.06);
  font-weight: 600;
}
.main-nav > a.cta-btn:hover, .main-nav > a.cta-btn:focus {
  background: #E9A01E;
  color: #2C3A64 !important;
  box-shadow: 0 4px 12px rgba(44,58,100,0.12);
}
.main-nav img {
  height: 38px;
  margin-right: 12px;
}

/* BURGER MENU (MOBILE) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #2C3A64;
  font-size: 2rem;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #ECF1F7;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 58, 100, 0.96);
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(0.46,0.03,0.52,0.96);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 16px 20px;
  align-self: flex-end;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 32px 0 0 32px;
  width: calc(100vw - 64px);
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E9A01E;
  color: #2C3A64;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(120deg, #ECF1F7 60%, #fff 100%);
  padding: 48px 0 40px 0;
  margin-bottom: 0 !important;
}
.hero .container, .hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.2rem;
  color: #2C3A64;
  line-height: 1.18;
}
.hero p {
  font-size: 1.1rem;
  color: #30384C;
  margin-bottom: 24px;
}
.hero .cta-btn {
  margin-top: 12px;
}

/* FEATURES (INDEX) */
.features {
  background: #fff;
}
.features .container {
  align-items: flex-start;
}
.features ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.08rem;
  color: #2C3A64;
  font-weight: 500;
}
.features img {
  width: 28px;
  height: 28px;
}
.features hr {
  width: 32%;
  min-width: 92px;
  margin: 22px 0 22px 0;
  border-top: 2px solid #E9A01E;
  opacity: 1;
}

/* TESTIMONIALS */
.testimonials {
  background: #ECF1F7;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 18px rgba(44,58,100,0.08);
  margin-bottom: 20px;
  margin-top: 0;
  border-left: 5px solid #E9A01E;
  min-width: 0;
}
.testimonial-card blockquote {
  background: none;
  border-left: none;
  color: #2C3A64;
  margin-bottom: 0;
  padding: 0;
  font-size: 1.05rem;
}
.testimonial-card div {
  color: #8D95A8;
  font-size: 1rem;
  font-weight: 500;
}

/* CTA SECTION */
.cta {
  background: #2C3A64;
  color: #fff;
  text-align: center;
  border-radius: 0;
  padding-top: 48px;
  padding-bottom: 48px;
}
.cta .container, .cta .content-wrapper {
  align-items: center;
}
.cta h2 {
  color: #fff;
}
.cta .cta-btn {
  background: #E9A01E;
  color: #2C3A64 !important;
  font-weight: 700;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 2px 10px rgba(44,58,100,0.13);
}
.cta .cta-btn:hover, .cta .cta-btn:focus {
  background: #fff;
  color: #2C3A64 !important;
  outline: 2px solid #E9A01E;
}

/* FOOTER */
footer {
  background: #23293C;
  color: #fff;
  padding: 32px 0 0 0;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #2C3A64;
  color: #E9A01E;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid #394060;
}
.footer-brand img {
  width: 38px;
  height: 38px;
}
.footer-brand div {
  font-size: 0.98rem;
  color: #B0B3C0;
  font-family: 'Roboto', Arial, sans-serif;
}

/* UTILITY FLEX CLASSES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(44,58,100,0.08);
  padding: 24px 20px;
  min-width: 270px;
  flex: 1 1 274px;
}
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(44,58,100,0.06);
  padding: 20px 18px;
  margin-bottom: 16px;
  min-width: 240px;
  flex: 1 1 230px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* SPECIAL SECTIONS */
.about, .team, .whyus, .services, .faq, .blog-list, .contact, .logos, .confirmation, .legal {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 16px rgba(44, 58, 100, 0.07);
}
.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.map-placeholder {
  background: #ECF1F7;
  border: 1.5px dashed #B1BADB;
  border-radius: 10px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7581A0;
  font-size: 1rem;
}

/* BLOG LIST */
.blog-list .text-section {
  background: #F5F5F5;
  box-shadow: 0 1px 5px rgba(44,58,100,0.05);
  border-radius: 9px;
  margin-bottom: 20px;
}
.blog-list .text-section a {
  color: #E9A01E;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 6px;
  display: inline-block;
  transition: color 0.2s;
}
.blog-list .text-section a:hover, .blog-list .text-section a:focus {
  color: #2C3A64;
}

/* FAQ SECTION */
.faq dl {  margin-bottom: 0; }
.faq dt {
  font-weight: 700;
  font-size: 1.05rem;
  color: #2C3A64;
  margin-bottom: 7px;
}
.faq dd {
  margin-bottom: 18px;
  margin-left: 0;
}

/* LOGOS - REFERENZEN PARTNERS */
.logos .text-section {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ECF1F7;
  border-radius: 9px;
  min-height: 60px;
  box-shadow: 0 1px 6px rgba(44,58,100,0.06);
  margin-bottom: 16px;
  padding: 14px 16px;
}
.logos img {
  width: 44px;
  height: 44px;
  display: block;
}

/* BUTTONS */
.cta-btn, button, input[type="button"], input[type="submit"] {
  background: #2C3A64;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  padding: 12px 32px;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  display: inline-block;
  margin-top: 8px;
}
.cta-btn:hover, .cta-btn:focus, button:hover, button:focus, input[type="button"]:hover, input[type="submit"]:hover {
  background: #E9A01E;
  color: #2C3A64;
  box-shadow: 0 4px 14px rgba(44,58,100,0.13);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #2C3A64;
  color: #fff;
  box-shadow: 0 -2px 12px rgba(44, 58, 100, 0.14);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 32px;
  z-index: 2200;
  font-size: 1rem;
  animation: fadeInUp 0.55s 0.25s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button, .cookie-banner .cookie-btn {
  background: #E9A01E;
  color: #2C3A64;
  padding: 8px 22px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fff;
  color: #2C3A64;
}
.cookie-banner .cookie-btn-secondary {
  background: #fff;
  color: #2C3A64;
  border: 2px solid #E9A01E;
  margin-left: 7px;
}
.cookie-banner .cookie-btn-secondary:hover, .cookie-banner .cookie-btn-secondary:focus {
  background: #E9A01E;
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(44,58,100,0.60);
  z-index: 2220;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Hidden initially; use .open to show */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .cookie-modal-inner {
  background: #fff;
  color: #23293C;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(44,58,100,0.15);
  padding: 38px 32px 32px 32px;
  min-width: 320px;
  max-width: 95vw;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadeInScale 0.36s both;
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  color: #2C3A64;
  font-size: 1.3rem;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #2C3A64;
  font-size: 2rem;
  cursor: pointer;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 13px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #2C3A64;
  font-weight: 500;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #2C3A64;
  width: 16px;
  height: 16px;
}
.cookie-modal .cookie-category.essential label {
  opacity: 0.75;
  font-style: italic;
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* FORMS (Kontakt) */
input, textarea {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #23293C;
  border: 1.5px solid #B1BADB;
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
  margin-bottom: 18px;
  background: #fff;
  transition: border-color 0.15s;
}
input:focus, textarea:focus {
  border-color: #2C3A64;
  outline: 2px solid #E9A01E;
}
label {
  font-weight: 500;
  font-size: 1.03rem;
  color: #2C3A64;
  margin-bottom: 7px;
  display: inline-block;
}

/* RESPONSIVE DESIGN (MOBILE FIRST) */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .container { max-width: 97vw; }
  .content-grid, .card-container, .service-list, .team-profiles {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .container { padding: 0 10px; }
  .hero {
    padding: 32px 0 24px 0;
  }
  .section, .about, .team, .whyus, .services, .faq, .blog-list, .contact, .logos, .confirmation, .legal {
    padding: 18px 7px;
    border-radius: 8px;
  }
  .footer-brand {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .content-grid, .card-container, .service-list, .team-profiles {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    padding: 15px;
  }
  .cta {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 560px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.11rem; }
  .hero h1 { font-size: 1.4rem; }
  .main-nav img, .footer-brand img { height: 32px; width: 32px; }
  .cta-btn { font-size: 0.99rem; padding: 10px 14px; }
  .cookie-modal .cookie-modal-inner { padding: 16px 6px; min-width: 0; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 8px;
    gap: 12px;
    font-size: 0.97rem;
  }
}

/* Z-INDEX COMPONENTS */
header { z-index: 1001; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 2200; }
.cookie-modal { z-index: 2220; }

/* MICRO-INTERACTIONS & TRANSITIONS */
.card, .text-section, .testimonial-card, .logos .text-section {
  transition: box-shadow 0.17s, transform 0.17s;
}
.card:hover, .text-section:hover, .testimonial-card:hover, .logos .text-section:hover {
  box-shadow: 0 5px 24px rgba(44,58,100,0.17);
  transform: translateY(-2px) scale(1.013);
}

/* HIGH CONTRAST FOR TESTIMONIALS/REVIEWS */
.testimonial-card, .testimonial-card * {
  color: #23293C;
  background: #fff;
}

/* SPECIAL: Hide focus outline unless keyboard (accessibility best) */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #E9A01E;
  outline-offset: 2px;
}

/* MINIMUM SPACING/MARGIN ENFORCEMENT FOR CARDS */
.card, .text-section, .testimonial-card, .logos .text-section {
  margin-bottom: 20px;
}

/* PREVENT CONTENT OVERLAP */
* {
  box-sizing: border-box;
}

/* Hide scrollbars on mobile menu */
.mobile-menu {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* End of style.css */