/* ========================
   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 {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #F7FAFC;
  color: #1A344C;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #1A344C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFB82E;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
  padding-left: 0.5em;
}
li {
  margin-bottom: 0.5em;
}

/* =============================
   TYPOGRAPHY
   ============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 20px;
  color: #1A344C;
}
h1 { font-size: 2.5rem; margin-top: 20px; }
h2 { font-size: 2rem; margin-top: 32px; }
h3 { font-size: 1.375rem; margin-top: 28px; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

p, li, table, summary, details, small, span {
  font-size: 1rem;
  font-weight: 400;
  font-family: 'Roboto', Arial, sans-serif;
  color: #23394d;
}
strong, b {
  font-weight: 600;
  color: #1A344C;
}
small {
  color: #5B6D81;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; margin-top: 10px; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}

/* ==========================
   CONTAINER & LAYOUT
   ========================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(26,52,76,0.08);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 22px 8px;
    gap: 20px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border: 1px solid #E6ECF2;
  border-radius: 14px;
  box-shadow: 0 1.5px 8px 0 rgba(26,52,76,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: 340px;
  padding: 28px 20px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 24px 0 rgba(26,52,76,0.16);
  transform: translateY(-4px) scale(1.025);
  z-index: 2;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .content-grid {
    flex-direction: column;
    gap: 24px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

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

/* ========================
   HEADER & NAVIGATION
   ======================== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1.5px solid #E6ECF2;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow 0.18s;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 76px;
}
header img {
  height: 42px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #24405E;
  padding: 6px 4px;
  border-radius: 4px;
  transition: background 0.17s, color 0.22s;
}
header nav a:hover, header nav a:focus {
  background: #E6ECF2; color: #1A344C;
  text-decoration: none;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  outline: none;
  border-radius: 28px;
  padding: 10px 32px;
  font-size: 1rem;
  background: #E6ECF2;
  color: #1A344C;
  cursor: pointer;
  transition: background 0.18s, color 0.23s, box-shadow 0.16s;
  box-shadow: 0 1px 3px rgba(26,52,76,0.07);
  margin-left: 24px;
  min-width: 160px;
  text-align: center;
}
.cta.primary {
  background: #1A344C;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(26,52,76,0.05);
}
.cta.primary:hover, .cta.primary:focus {
  background: #FFB82E;
  color: #1A344C !important;
}
.cta.secondary {
  background: #FFB82E;
  color: #1A344C !important;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #1A344C;
  color: #fff !important;
}
.cta:hover, .cta:focus {
  box-shadow: 0 4px 18px 0 rgba(26,52,76,0.15);
  outline: none;
}

@media (max-width: 1050px) {
  header nav {
    gap: 10px;
  }
  .cta {
    min-width: 110px;
    margin-left: 10px;
    padding: 9px 18px;
    font-size: 0.97rem;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 0;
    flex-wrap: wrap;
  }
  .cta {
    margin-left: 7px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 12px;
    padding: 0 7px;
  }

  header nav {
    display: none;
  }
  .cta {
    display: none;
  }
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  padding: 5px 14px;
  color: #1A344C;
  cursor: pointer;
  transition: color 0.19s, background 0.13s;
  z-index: 103;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #FFB82E;
  background: #E6ECF2;
  border-radius: 7px;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 18px;
    top: 19px;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #1A344C;
  z-index: 102;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.4,.18,.4,1);
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.25rem;
  margin: 20px 0 10px 20px;
  align-self: flex-start;
  transition: color 0.15s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFB82E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 46px 30px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  border-radius: 8px;
  padding: 9px 11px;
  width: 100%;
  display: flex;
  align-items: center;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFB82E;
  color: #1A344C;
}

@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* =======================
   HERO & SPECIAL SECTIONS
   ======================= */
.hero {
  width: 100%;
  background: linear-gradient(to right, #E6ECF2 64%, #D4DEE9 100%);
  padding: 0;
  margin-bottom: 0;
  border-radius: 0 0 38px 38px;
}
.hero .container {
  align-items: center;
  justify-content: center;
  padding-top: 42px;
  padding-bottom: 48px;
  min-height: 300px;
}
.hero h1 {
  font-size: 2.5rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 0;
    border-radius: 0 0 18px 18px;
  }
  .hero .container {
    padding: 25px 0 26px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

.features {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 50px;
  padding-top: 20px;
}

.newsletter {
  background: #f3f7fa;
  border-radius: 12px;
  padding: 34px 0 44px 0;
  margin-bottom: 48px;
}
.newsletter h2 { color: #1A344C; }

.trust {
  background: #fafdff;
  border-radius: 12px;
  padding: 24px 0 26px 0;
  margin-bottom: 32px;
}

.faq details {
  margin-bottom: 20px;
  background: #f8fafd;
  padding: 16px 18px;
  border-radius: 7px;
  border: 1px solid #E6ECF2;
  box-shadow: 0 0.5px 3px rgba(26,52,76,0.04);
  transition: box-shadow 0.13s;
}
.faq details[open] {
  box-shadow: 0 2px 8px rgba(26,52,76,0.07);
}
.faq summary {
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
  color: #1A344C;
}

.company-profiles details {
  border: 1px solid #E6ECF2;
  margin-bottom: 18px;
  border-radius: 9px;
  padding: 11px 17px;
  background: #fafdff;
  font-size: 1rem;
  transition: background 0.15s, box-shadow 0.13s;
}
.company-profiles details[open] {
  background: #E6ECF2;
  box-shadow: 0 2px 10px rgba(26,52,76,0.07);
}
.company-profiles summary {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

.infoboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}
@media (max-width: 768px) {
  .infoboxes {
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
  }
}

/* =========================
   TABLES
   ========================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 1.5px 8px rgba(26,52,76,0.06);
}
th, td {
  padding: 15px 14px;
  border-bottom: 1px solid #E6ECF2;
  text-align: left;
  font-size: 1rem;
  vertical-align: middle;
}
th {
  background: #E6ECF2;
  color: #1A344C;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
}
tbody tr:last-child td {
  border-bottom: none;
}
tr:hover {
  background: #F4F6F8;
}

@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  th { display: none; }
  tr { margin-bottom: 17px; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(26,52,76,0.04); }
  td {
    position: relative;
    padding: 11px 10px 11px 48%;
    border-bottom: none;
    font-size: 0.97rem;
  }
  td:before {
    position: absolute;
    left: 14px;
    top: 11px;
    width: 44%;
    white-space: nowrap;
    font-weight: 600;
    color: #24405E;
  }
  tbody tr td:nth-child(1):before { content: 'Unternehmen'; }
  tbody tr td:nth-child(2):before { content: 'Sitz'; }
  tbody tr td:nth-child(3):before { content: 'Gründungsjahr'; }
  tbody tr td:nth-child(4):before { content: 'Umsatz (Mrd. €)'; }
  tbody tr td:nth-child(5):before { content: 'Gewinn (Mrd. €)'; }
  tbody tr td:nth-child(6):before { content: 'Mitarbeiter'; }
  /* For Profitabilität Table */
  tbody tr td:nth-child(2):before { content: 'Umsatz (Mrd. €)'; }
  tbody tr td:nth-child(3):before { content: 'Gewinnmarge (%)'; }
  tbody tr td:nth-child(4):before { content: 'Gewinn (Mrd. €)'; }
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials {
  background: #fafdff;
  padding: 44px 0 22px 0;
  border-radius: 14px;
}
.testimonials h2 {
  color: #1A344C;
  margin-bottom: 26px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(26,52,76,0.09);
  border: 1px solid #E6ECF2;
  border-radius: 11px;
  margin-bottom: 20px;
  max-width: 640px;
}
.testimonial-card p {
  color: #1A344C;
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
}
.testimonial-card span {
  color: #5B6D81;
  font-size: 0.98rem;
  font-style: normal;
}
@media (max-width: 768px) {
  .testimonials { padding: 22px 0 10px 0; }
  .testimonial-card {
    flex-direction: column;
    gap: 6px;
    padding: 14px 10px;
    max-width: 99vw;
  }
}

/* ==========================
   FOOTER
   ========================== */
footer {
  background: #1A344C;
  color: #fff;
  padding: 38px 0 16px 0;
  border-radius: 38px 38px 0 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
footer img {
  height: 38px;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 16px;
  font-size: 1rem;
}
footer nav a {
  color: #ffd88c;
  font-weight: 400;
  margin: 0 3px;
  transition: color 0.15s;
}
footer nav a:hover,
footer nav a:focus {
  color: #FFB82E !important;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.footer-contact span {
  color: #CFD8E3;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  height: 1.13em;
  margin-right: 3px;
}
.footer-social {
  display: flex;
  gap: 17px;
  margin: 6px 0 0 0;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  filter: grayscale(20%) brightness(1.15);
  transition: filter 0.14s;
}
.footer-social a:hover img,
.footer-social a:focus img {
  filter: none;
}
.footer-copyright {
  margin-top: 10px;
  color: #9BB2C7;
  font-size: 0.98rem;
}
@media (max-width: 768px) {
  footer {
    border-radius: 18px 18px 0 0;
    margin-top: 38px;
    padding: 18px 0 11px 0;
  }
  footer img { height: 30px; margin-bottom: 7px; }
  .footer-contact { gap: 7px; }
  .footer-social { gap: 9px; }
}

/* ====================
   COOKIE CONSENT BANNER
   ==================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 120;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 22px rgba(26,52,76,0.13);
  padding: 24px 15px 18px 15px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 29px;
  border-top: 2.5px solid #E6ECF2;
  transition: transform 0.23s, opacity 0.23s;
}
.cookie-consent-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-text {
  color: #1A344C;
  font-size: 1rem;
  max-width: 600px;
}
.cookie-consent-actions {
  display: flex;
  gap: 13px;
  align-items: center;
}
.cookie-btn {
  border: none;
  outline: none;
  background: #E6ECF2;
  color: #1A344C;
  padding: 9px 22px;
  border-radius: 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.14s;
}
.cookie-btn.primary {
  background: #1A344C;
  color: #fff;
}
.cookie-btn.primary:hover, .cookie-btn.primary:focus {
  background: #FFB82E;
  color: #1A344C;
}
.cookie-btn.secondary {
  background: #FFB82E;
  color: #1A344C;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #24405E;
  color: #fff;
}
.cookie-btn.settings {
  background: #E6ECF2;
  color: #1A344C;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e9c270;
  color: #243444;
}
@media (max-width: 800px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 9px 13px 12px;
  }
}

/* --- Cookie Preferences Modal --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 122;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,52,76,0.44);
  display: none;
  justify-content: center;
  align-items: center;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 36px rgba(26,52,76,0.19);
  max-width: 400px;
  width: 96vw;
  padding: 32px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.cookie-modal-close {
  position: absolute;
  right: 17px;
  top: 15px;
  background: none;
  border: none;
  color: #1A344C;
  font-size: 1.45rem;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #FFB82E;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: #24405E;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  appearance: none;
  background: #E6ECF2;
  border-radius: 20px;
  outline: none;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle:checked {
  background: #FFB82E;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 1.5px rgba(26,52,76,0.09);
  transition: left 0.14s;
}
.cookie-toggle:checked::before {
  left: 19px;
}
.cookie-category-desc {
  font-size: 0.92rem;
  color: #5B6D81;
  margin-left: 39px;
  margin-top: -2px;
  margin-bottom: 0;
}

/* =====================
   ACCESSIBILITY FOCUS
   ===================== */
a, button, .cta, .cookie-btn, .cookie-modal-close, .mobile-menu-toggle, .mobile-menu-close {
  outline: none;
}
a:focus-visible, button:focus-visible, .cta:focus-visible, .cookie-btn:focus-visible, .mobile-menu-toggle:focus-visible {
  outline: 2.5px solid #FFB82E;
  outline-offset: 2px;
}

/* =========================
   UTILITIES & MICRO EFFECTS
   ========================= */
.shadow {
  box-shadow: 0 2px 16px 0 rgba(26,52,76,0.09);
}
.rounded {
  border-radius: 12px;
}
.bg-primary { background: #1A344C; color: #fff; }
.bg-secondary { background: #FFB82E; color: #1A344C; }
.bg-accent { background: #E6ECF2; color: #1A344C; }

/* =========================
   RESPONSIVE TWEAKS
   ========================= */
@media (max-width: 600px) {
  .section, .features, .trust, .newsletter, .testimonials {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
  }
  .container {
    padding: 0 4px;
    max-width: 100vw;
  }
}

/* === Hide non-critial images on xs screens === */
@media (max-width: 500px) {
  header img, footer img {
    height: 26px !important;
    max-width: 55vw;
  }
  .footer-contact {
    flex-direction: column;
    gap: 1px;
  }
}

/* =========================
   ANIMATION HELPERS
   ========================= */
.scale-up {
  animation: scaleUp 0.19s cubic-bezier(.5,.1,.6,.9);
}
@keyframes scaleUp {
  from { transform: scale(.96); opacity:0; }
  to   { transform: scale(1); opacity:1; }
}

/* ==========================
   SPECIAL COMPONENT STYLES
   ========================== */
::-webkit-scrollbar {
  width: 8px;
  background: #E6ECF2;
}
::-webkit-scrollbar-thumb {
  background: #c6d3e3;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b2bfd1;
}

input, select, textarea {
  appearance: none;
  border: 1px solid #E6ECF2;
  background: #FBFCFE;
  color: #1A344C;
  border-radius: 7px;
  padding: 11px 11px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 13px;
  transition: border 0.17s;
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid #FFB82E;
  outline: none;
}

/* End of CSS */
