/* --- CSS RESET & NORMALIZE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F5F7FA;
  color: #252525;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #3BA191;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #183B5A;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.6em;
}
strong {
  font-weight: 700;
}
button, .cta-btn {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

/* --- BRAND FONTS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #183B5A;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}@media (max-width:600px){h1{font-size:2rem;}}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}@media (max-width:600px){h2{font-size:1.4rem;}}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem; margin-bottom: 10px;
}
p, ul, ol {
  font-size: 1rem;
  color: #314355;
  margin-bottom: 16px;
}

/* --- COLOR VARIABLES --- */
:root {
  --primary: #183B5A;
  --secondary: #3BA191;
  --accent: #F5F7FA;
  --neutral: #fff9f3;
  --warm1: #ffd9c3;
  --warm2: #fff3e3;
  --shadow: rgba(24, 59, 90, 0.08);
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1140px;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 20px;
  box-shadow: 0 4px 24px var(--shadow);
}

/* --- HEADER --- */
header {
  background: #fff9f3;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 0;
  position: sticky;
  top: 0; z-index: 100;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
}
.logo-link img {
  height: 48px;
}

/* NAVIGATION */
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #183B5A;
  padding: 6px 0;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus, .footer-nav a:hover, .footer-nav a:focus {
  background: var(--warm1);
  color: var(--secondary);
}

.cta-btn {
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 700;
  margin-left: 10px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  border: none;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #2a786b;
  color: #fff7ed;
  box-shadow: 0 4px 18px var(--shadow);
}

/* --- HERO SECTION --- */
.hero-section {
  background: linear-gradient(90deg, #fff9f3 60%, #FFD9C3 100%);
  border-bottom-left-radius: 38px;
  border-bottom-right-radius: 38px;
  padding-top: 52px;
  padding-bottom: 52px;
  box-shadow: 0 6px 24px var(--shadow);
}
.hero-section .content-wrapper {
  align-items: flex-start;
  max-width: 650px;
}
.hero-section p {
  font-size: 1.18rem;
  color: #314355;
  margin-bottom: 28px;
}

/* --- FEATURES GRID/CARDS --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 12px;
  justify-content: flex-start;
}
.feature-card {
  flex: 1 1 240px;
  min-width: 240px;
  background: var(--neutral);
  box-shadow: 0 2px 18px var(--shadow);
  border-radius: 18px;
  padding: 30px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: transform 0.16s, box-shadow 0.16s;
}
.feature-card:hover, .feature-card:focus-within {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 8px 30px var(--shadow);
}
.feature-card img {
  height: 40px;
  width: 40px;
  margin-bottom: 8px;
}
.feature-card h3 {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 6px;
}

/* --- TESTIMONIALS --- */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 18px;
  margin-bottom: 8px;
}
.testimonial-card {
  background: #fff;
  box-shadow: 0 2px 14px var(--shadow), 0 1.5px 0 var(--warm1);
  border-radius: 18px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  flex: 1 1 280px;
  min-width: 240px;
  font-size: 1.07rem;
  color: #234055;
  transition: box-shadow 0.13s, transform 0.13s;
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--secondary);
  margin-top: 3px;
}
.testimonial-card p {
  font-style: italic;
  color: #234055;
  margin-bottom: 4px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px var(--shadow);
  transform: scale(1.016);
}

/* --- CTA SECTION --- */
section .cta-btn {
  margin-top: 12px;
  align-self: flex-start;
}

/* --- ABOUT & FLEX CONTENTS --- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px; position: relative;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 15px var(--shadow);
  padding: 22px 18px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- CONTACT INFO --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 12px 0 22px 0;
}
.contact-info div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: #183B5A;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* --- QUICK FACTS (ZB Prozessoptimierung) --- */
.quick-facts {
  background: #fff;
  border-left: 6px solid var(--secondary);
  border-radius: 10px;
  padding: 20px 20px 18px 20px;
  margin-top: 26px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px var(--shadow);
}

/* --- FOOTER --- */
footer {
  background: #fff9f3;
  box-shadow: 0 -2px 14px var(--shadow);
  margin-top: 72px;
  font-size: 1rem;
  color: #183B5A;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 0 8px 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.footer-nav a {
  color: #183B5A;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.16s, background 0.16s;
  border-radius: 5px;
  padding: 3px 6px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  font-size: 1rem;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 6px;
}
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}
.footer-social img {
  height: 30px;
  width: 30px;
}
.copyright {
  margin-top: 0;
  padding: 18px 0 18px 0;
  font-size: 0.95rem;
  color: #78706c;
  justify-content: center;
  align-items: center;
  display: flex;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff9f3ee;
  z-index: 1103;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.77,.13,.35,1.02);
  box-shadow: 4px 0 24px var(--shadow);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #183B5A;
  border: none;
  font-size: 2.1rem;
  align-self: flex-end;
  margin-bottom: 32px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--warm1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #183B5A;
  text-decoration: none;
  padding: 10px 0 10px 0;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  width: 100%;
  transition: background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--warm2);
}

/* Show mobile menu button and hide nav on mobile */
@media (max-width: 950px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 24px;
    top: 22px;
    background: var(--secondary);
    color: #fff;
    border: none;
    font-size: 2.05rem;
    border-radius: 10px;
    width: 46px;
    height: 46px;
    z-index: 1102;
    cursor: pointer;
    transition: background 0.14s, color 0.14s;
    box-shadow: 0 2px 8px var(--shadow);
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #2a786b;
    color: #fff7ed;
  }
  .header-container {
    padding-right: 65px;
  }
}

/* MOBILE MENU overlays everything when opened */
@media (max-width: 950px) {
  .mobile-menu {
    display: flex;
  }
}

@media (max-width: 650px) {
  .footer-container { flex-direction: column; align-items: flex-start; gap: 18px;}
  .header-container {flex-direction: row; gap: 10px;}
  .copyright{font-size:0.93rem; text-align:center;}
}

/* --- RESPONSIVE FLEX --- */
@media (max-width: 900px) {
  .features-grid, .testimonial-list, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .feature-card, .testimonial-card {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero-section {
    padding-top: 28px; padding-bottom: 28px;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
  }
}
@media (max-width: 500px) {
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
  .feature-card, .testimonial-card {
    padding: 18px 10px;
  }
}

/* --- SECTION & CARD SPACING --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.card-container, .features-grid, .testimonial-list, .content-grid, .text-image-section {
  gap: 20px;
}

/* --- CARD STYLES (GENERIC) --- */
.card, .feature-card, .testimonial-card {
  border-radius: 18px;
  box-shadow: 0 3px 15px var(--shadow);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: var(--neutral);
  box-shadow: 0 -4px 20px var(--shadow);
  padding: 22px 16px 18px 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  transition: transform 0.27s;
  transform: translateY(0);
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(150%);
}
.cookie-banner-content {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-start;
  width: 100%;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: var(--secondary);
  color: #fff;
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  margin: 0 0 0 0;
  transition: background 0.16s;
  cursor: pointer;
}
.cookie-btn.reject {
  background: #fbad77;
  color: #183B5A;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--secondary) !important;
  border: 2px solid var(--secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #2a786b;
  color: #fff7ed;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffd9c3;
  color: #183B5A;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus  {
  background: #F5F7FA;
}

@media (max-width: 600px) {
  .cookie-banner-content { flex-direction: column; gap: 18px; }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 4000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #183B5A33;
  justify-content: center; align-items: center;
}
.cookie-modal-backdrop.open {
  display: flex;
  animation: fadeInModalBg 0.2s;
}
@keyframes fadeInModalBg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff9f3;
  border-radius: 22px;
  box-shadow: 0 8px 32px var(--shadow);
  min-width: 320px; max-width: 94vw;
  padding: 38px 26px 26px 26px;
  position: relative;
  animation: modalPopIn 0.3s;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@keyframes modalPopIn {
  from { transform: scale(0.88) translateY(20px); }
  to { transform: scale(1) translateY(0); }
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 18px;
  background: transparent;
  color: #183B5A; border: none;
  font-size: 1.8rem;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #3BA191;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.cookie-category label {
  font-size: 1.02rem;
  color: #183B5A;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  border: 2px solid var(--secondary);
  border-radius: 7px;
  background: #fff;
  transition: background 0.11s;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.cookie-category input[type="checkbox"]:checked {
  background: var(--secondary);
  border-color: var(--secondary);
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="14" height="14" xmlns="http://www.w3.org/2000/svg"><path fill="white" d="M4 9.1l-2-2L0 9.1l4 4 8-8-2-2-6 6z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}
.cookie-category input[disabled] {
  background: #efefef;
  border-color: #bbb;
  cursor: not-allowed;
}

/* --- UTILITY CLASSES --- */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.rounded {
  border-radius: 16px!important;
}
.shadowed {
  box-shadow: 0 2px 14px var(--shadow)!important;
}
.bg-primary {
  background: var(--primary);
}
.bg-secondary {
  background: var(--secondary);
}
.bg-accent {
  background: var(--accent);
}
.bg-warm1 { background: var(--warm1); }
.bg-warm2 { background: var(--warm2); }

hr {
  border: none;
  height: 2px;
  background: #faebe2;
  margin: 34px 0;
}

/* --- TRANSITIONS for BUTTONS & CARDS --- */
.card, .feature-card, .testimonial-card, .cta-btn, .cookie-btn, .mobile-menu-toggle {
  transition: box-shadow 0.14s, transform 0.14s, background 0.16s, color 0.19s;
}

/* --- ANIMATION for MOBILE MENU --- */
.mobile-menu {
  transition: transform 0.33s cubic-bezier(.59,.06,.72,1.14), box-shadow 0.11s;
}

/* --- SCROLLBAR (optional, brand colors) --- */
::-webkit-scrollbar {
  width: 8px;
  background: #f7e6db;
}
::-webkit-scrollbar-thumb {
  background: #ffd9c3;
  border-radius: 4px;
}

/* --- ACCESSIBLE FOCUS OUTLINE --- */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* --- SPECIAL CARD STYLES FOR SUCCESS/INFO --- */
.success-card {
  background: #e8faed;
  border-left: 5px solid var(--secondary);
  color: #22593c;
  padding: 16px 22px;
  margin-bottom: 18px;
  border-radius: 12px;
}
.info-card {
  background: #fff4ee;
  color: #6d3e24;
  border-left: 5px solid #fbad77;
  padding: 16px 20px;
  margin-bottom: 15px;
  border-radius: 12px;
}

/* --- PRINT OPTIMIZATION --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner,
  .mobile-menu-toggle { display: none !important; }
}
