/* --- CSS RESET & BASE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: #F6F6F6;
  color: #23415E;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* --- BRAND TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  color: #214478;
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.25; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; }

p, ul, ol { margin-bottom: 16px; }
a {
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F4B942;
  text-decoration: none;
}

strong, b { font-weight: 700; color: #1c2945; }

ul, ol {
  padding-left: 22px;
  list-style: disc inside;
}

/* --- CONTAINER & SECTIONS --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px 0 rgba(33,68,120,0.06);
  color: #23415E;
}

/* --- HEADER --- */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(33,68,120,0.07);
  z-index: 105;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 20px;
}

.logo img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-left: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #214478;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F4B94222;
  color: #F4B942;
}

/* CTA Primary */
.cta-primary {
  background: #214478;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  text-decoration: none;
  margin-left: 32px;
  transition: background 0.2s, color 0.2s, box-shadow 0.25s;
  box-shadow: 0 2px 8px 0 rgba(33, 68, 120, 0.09);
  cursor: pointer;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #163059;
  color: #F4B942 !important;
  box-shadow: 0 6px 24px 0 rgba(33, 68, 120, 0.23);
}

.cta-secondary {
  background: #fff;
  color: #214478 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #214478;
  border-radius: 8px;
  padding: 10px 20px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #F4B942;
  color: #163059 !important;
  border-color: #F4B942;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #214478;
  font-size: 2rem;
  padding: 4px 12px;
  cursor: pointer;
  margin-left: 16px;
  border-radius: 6px;
  transition: background 0.16s;
  z-index: 202;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F4B94222;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 36px 0 rgba(33,68,120,0.14);
  z-index: 200;
  transition: transform 0.34s cubic-bezier(.33,1,.68,1), left 0s 0.34s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(-100vw);
  left: 0;
  pointer-events: auto;
  transition: transform 0.42s cubic-bezier(.33,1,.68,1);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #214478;
  font-size: 2.2rem;
  padding: 14px 26px 14px 16px;
  align-self: flex-end;
  margin: 10px 10px 0 0;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.16s;
  z-index: 202;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F4B94222;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 34px 32px 0 32px;
}
.mobile-nav a {
  color: #214478;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 0;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F4B94222;
  color: #F4B942;
}

/* --- SECTIONS, SPACING & CARD CONTAINERS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(33,68,120,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 28px;
  flex: 1 1 340px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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: flex-start;
  gap: 12px;
  padding: 20px;
  background: #f6f6f6;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(33,68,120,0.04);
  color: #1c2945;
  max-width: 540px;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #1c2945;
}
.testimonial-card span {
  font-size: 1rem;
  color: #214478;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(33,68,120,0.06);
  padding: 20px 18px;
  min-width: 220px;
  flex: 1 1 250px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
}
.feature-item:hover {
  box-shadow: 0 6px 32px 0 rgba(33,68,120,0.10);
  transform: translateY(-5px) scale(1.02);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}

/* --- FOOTER --- */
footer {
  background: #214478;
  color: #fff;
  padding: 44px 0 30px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer-logo img {
  height: 48px;
  margin-bottom: 12px;
}
.footer-contact {
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer-links, .footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}
.footer-links a, .footer-menu a {
  color: #f6f6f6;
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-links a:hover, .footer-menu a:hover, .footer-links a:focus, .footer-menu a:focus {
  color: #F4B942;
}
.social-media {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.social-media img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.social-media img:hover, .social-media img:focus {
  opacity: 1;
}

/* --- UTILITY CLASSES --- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-32 { margin-top: 32px !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.text-center { text-align: center !important; }
.text-section ul { margin-bottom: 8px; }

/* --- PLACEHOLDERS --- */
.team-photo-placeholder, .address-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F6F6F6;
  border-radius: 12px;
  margin: 0 auto;
  padding: 30px 15px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 2px 10px 0 rgba(33,68,120,0.04);
}
.team-photo-placeholder img, .address-map-placeholder img {
  width: 70px;
  height: 70px;
}

.pro-hinweis {
  padding: 13px 20px;
  border-left: 4px solid #F4B942;
  background: #f9f9fc;
  border-radius: 9px;
  margin-top: 22px;
  margin-bottom: 6px;
  font-size: 1.03rem;
  color: #214478;
}

/* --- BUTTONS --- */
button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

button:focus {
  outline: 2px solid #F4B942;
  outline-offset: 2px;
}

/* --- MICRO-INTERACTIONS --- */
a, button, .feature-item, .cta-primary, .cta-secondary {
  transition: background 0.21s, color 0.19s, box-shadow 0.22s, border 0.19s;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #1c2945;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 10px 14px 10px;
  z-index: 30000;
  box-shadow: 0 -3px 24px 0 rgba(33,68,120,0.15);
  font-size: 1rem;
  animation: banner-in 0.32s cubic-bezier(0.3, 1, 0.69, 1);
}
@keyframes banner-in {
  0% { transform: translateY(200px); opacity: 0; }
  70% { transform: translateY(-8px); opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-banner .cookie-message {
  flex-grow: 2;
  font-size: 1rem;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 0;
  line-height: 1.1;
  cursor: pointer;
  background: #F4B942;
  color: #214478;
  transition: background 0.17s, color 0.17s;
}
.cookie-btn.accept {
  background: #F4B942;
  color: #214478;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #e5ad36;
}
.cookie-btn.reject {
  background: #fff;
  color: #214478;
  border: 1px solid #214478;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffecc0;
  color: #214478;
}
.cookie-btn.settings {
  background: #214478;
  color: #fff;
  border: 1px solid #F4B942;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #163059;
}

/* --- COOKIE MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 30100;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(33, 68, 120, 0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: backdrop-in 0.27s;
}
@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #214478;
  border-radius: 16px;
  box-shadow: 0 2px 32px 0 rgba(33,68,120,0.17);
  padding: 38px 34px 28px 34px;
  min-width: 300px;
  max-width: 98vw;
  width: 400px;
  z-index: 30110;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modal-in 0.23s cubic-bezier(.45,1,.5,1);
}
@keyframes modal-in {
  0% { transform: scale(0.93); opacity: 0; }
  80% { transform: scale(1.03) }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 { font-size: 1.25rem; margin-bottom: 8px; }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal .category-name {
  font-weight: 600;
  flex-basis: 35%;
}
.cookie-modal .category-always-on {
  color: #214478;
  font-size: 0.98rem;
  font-style: italic;
}
.cookie-modal .category-toggle {
  margin-left: auto;
}
.cookie-modal .close-cookie-modal {
  border: none;
  background: none;
  font-size: 1.5rem;
  color: #23415E;
  position: absolute;
  right: 20px;
  top: 16px;
  cursor: pointer;
}
.cookie-switch {
  --switch-bg: #eee;
  --switch-checked: #F4B942;
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
}
.cookie-switch input { display: none; }
.cookie-switch .slider {
  position: absolute;
  cursor: pointer;
  background: var(--switch-bg);
  border-radius: 22px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.18s;
}
.cookie-switch .slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  border-radius: 50%;
  transition: 0.19s;
  box-shadow: 0 2px 6px 0 rgba(33,68,120,0.10);
}
.cookie-switch input:checked + .slider {
  background: var(--switch-checked);
}
.cookie-switch input:checked + .slider:before {
  transform: translateX(17px);
  background: #214478;
}

.cookie-modal .actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  justify-content: flex-end;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1080px) {
  .container { max-width: 97vw; }
}
@media (max-width: 900px) {
  header .container, .footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 10px; }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-primary {
    margin-left: 8px;
  }
  .footer-logo img {
    height: 38px;
  }
  .content-grid, .features-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .section {
    padding: 34px 9px;
    margin-bottom: 38px;
  }
  .feature-item, .testimonial-card, .card {
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 570px) {
  html { font-size: 14px; }
  .footer-contact, .footer-links, .footer-menu, .social-media {
    font-size: 0.98rem;
    flex-direction: column;
    gap: 8px;
  }
  .team-photo-placeholder, .address-map-placeholder {
    max-width: 98vw;
    padding: 19px 4px;
  }
  .cookie-modal { padding: 19px 6vw 18px 6vw; width: 95vw; min-width: unset; }
}
 
