/* == CSS RESET & NORMALIZE == */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F6F7FB;
  color: #2C2B2B;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}
ul, ol {
  margin: 16px 0 16px 24px;
}
li {
  margin-bottom: 10px;
}
a {
  color: #1A2238;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F5A623;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #1A2238;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}

p {
  margin-bottom: 16px;
}
strong, b {
  font-weight: bold;
  color: #1A2238;
}

/* == CONTAINERS & LAYOUTS == */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 20px;
}
@media (max-width:768px) {
  section {
    padding: 28px 6px;
    margin-bottom: 36px;
    border-radius: 14px;
  }
  .content-wrapper {
    gap: 18px;
    padding: 12px 0;
  }
}

/* == HERO == */
.hero {
  background: #FFEEDF;
  background: linear-gradient(90deg,#FFEEDF 70%,#FFF8F0 100%);
  border-radius: 28px;
  margin-bottom: 60px;
  box-shadow: 0 3px 30px rgba(245,166,35,0.07);
}
.hero h1 {
  color: #D9820A;
  font-size: 2.5rem;
}
.hero p {
  color: #444;
}

/* == NAVIGATION == */
header {
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(245,166,35,0.04);
  position: relative;
  z-index: 1001;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  padding: 14px 0;
  font-size: 18px;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 12px;
  color: #1A2238;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.15s, color 0.15s;
}
.main-nav a.cta.primary {
  background: #F5A623;
  color: #fff;
  font-weight: bold;
  border-radius: 20px;
  box-shadow: 0 3px 18px rgba(245,166,35,0.17);
  margin-left: 18px;
  transition: background 0.2s, box-shadow 0.2s;
}
.main-nav a.cta.primary:hover,
.main-nav a.cta.primary:focus {
  background: #faaf41;
  box-shadow: 0 6px 28px rgba(245,166,35,0.26);
  color: #fff;
}
.main-nav a:hover, .main-nav a:focus {
  background: #fae1be;
  color: #D9820A;
}
.main-nav img {
  max-height: 38px;
  margin-right: 22px;
  vertical-align: middle;
  border-radius: 12px;
}

/* == MOBILE MENU == */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 16px;
  background: #F5A623;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1101;
  box-shadow: 0 2px 10px rgba(245,166,35,0.13);
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #1A2238;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff7ea;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.7,.3,.25,1) 0s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0 0 60px 0;
  box-shadow: 0 4px 40px rgba(245,166,35,0.15);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #1A2238;
  align-self: flex-end;
  padding: 24px 26px 12px 0;
  margin-bottom: 16px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F5A623;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-left: 32px;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 0;
  border-radius: 16px;
  color: #1A2238;
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: #F5A623;
  padding-left: 10px;
}
@media (max-width: 1020px) {
  .main-nav {
    gap: 18px;
    font-size: 16px;
  }
  .main-nav img {
    margin-right: 10px;
    max-height: 34px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
    font-size: 15px;
  }
  .main-nav a.cta.primary {
    margin-left: 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* == SECTIONS, FLEXBOX LAYOUTS == */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(154, 170, 242, 0.12);
  padding: 28px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 22px 0 rgba(245,166,35,0.22);
  transform: translateY(-4px) scale(1.015);
  z-index: 1;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffaf3;
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(245,166,35,0.14);
  color: #1A2238;
  font-style: italic;
  margin-bottom: 20px;
  min-width: 0;
}
.testimonial-card p {
  color: #1A2238;
  margin: 0;
}
.testimonial-card strong {
  margin-left: 18px;
  font-size: 1rem;
  color: #F5A623;
  font-style: normal;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(154, 170, 242, 0.09);
  padding: 18px 22px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 8px;
    border-radius: 10px;
  }
}

/* == FEATURE GRID (custom for Index/About/Forschung etc.) == */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
  margin: 16px 0 20px 0;
}
.feature-grid > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 10px 0 rgba(245,166,35,0.13);
  padding: 20px;
  flex: 1 1 240px;
  min-width: 220px;
  transition: box-shadow 0.16s, transform 0.13s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.feature-grid > div:hover {
  box-shadow: 0 3px 16px 0 rgba(245,166,35,0.19);
  transform: translateY(-3px) scale(1.025);
}
.feature-grid img {
  max-height: 52px;
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 13px;
  }
  .feature-grid > div {
    min-width: 170px;
    padding: 14px;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
  }
}

/* == INDEX: ADDITIONAL FEATURE ICONS == */
.features-icons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin: 22px 0 20px 0;
  align-items: center;
}
.features-icons img {
  background: #FFF7EA;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(245,166,35,0.10);
  padding: 10px;
  max-width: 45px;
}

/* == FORSCHUNG: TRUST SIGNALS == */
.trust-signals {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin: 26px 0 16px 0;
  align-items: center;
}
.trust-signals img {
  border-radius: 50%;
  background: #ffeacc;
  box-shadow: 0 1px 8px rgba(245,166,35,0.08);
  padding: 11px;
  max-width: 42px;
}

/* == TEAM: TEAM GRID == */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 18px 0;
}
.member-bio {
  background: #fff;
  box-shadow: 0 1px 12px rgba(154,170,242,0.11);
  border-radius: 13px;
  padding: 20px 20px 18px 20px;
  flex: 1 1 220px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.member-bio h3 {
  font-size: 1.22rem;
  color: #F5A623;
  margin-bottom: 2px;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .team-grid {
    flex-direction: column;
    gap: 12px;
  }
  .member-bio {
    padding: 12px 10px;
    min-width: 0;
  }
}

/* == CTA SECTION == */
.cta {
  background: #fef6e7;
  border-radius: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 12px 0 rgba(245,166,35,0.10);
}
.cta .cta.primary, .content-wrapper .cta.primary {
  background: #F5A623;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: bold;
  border-radius: 22px;
  padding: 14px 36px;
  display: inline-block;
  margin-top: 10px;
  box-shadow: 0 4px 15px 0 rgba(245,166,35,0.23);
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.2s, transform 0.12s;
}
.cta .cta.primary:hover, .content-wrapper .cta.primary:hover,
.cta .cta.primary:focus, .content-wrapper .cta.primary:focus {
  background: #1A2238;
  color: #fff;
  box-shadow: 0 8px 24px 0 rgba(26,34,56,0.18);
  transform: translateY(-1px) scale(1.03);
}

/* == BUTTONS GENERAL == */
button, .button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #F5A623;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 11px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 14px 0 rgba(245,166,35,0.11);
}
button:hover, .button:hover, button:focus, .button:focus {
  background: #faaf41;
  color: #fff;
  outline: none;
  box-shadow: 0 8px 34px 0 rgba(245,166,35,0.21);
}

/* == FOOTER == */
footer {
  background: #fff;
  border-top: 4px solid #F5A623;
  box-shadow: 0 -2px 18px rgba(245,166,35,0.07);
  margin-top: 60px;
  padding: 32px 0 18px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo {
  max-height: 48px;
  margin-bottom: 16px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 1rem;
}
.footer-nav a {
  color: #1A2238;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 9px;
  padding: 3px 10px 3px 0;
  transition: color 0.18s, background 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F5A623;
  background: #FFF2DE;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #444;
  font-size: 0.98rem;
  margin-top: 6px;
}
.footer-contact img {
  display: inline;
  vertical-align: middle;
  margin-right: 8px;
  max-height: 20px;
  border-radius: 6px;
}
@media (max-width:900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-logo {
    margin-bottom: 10px;
  }
}

/* == COOKIE CONSENT BANNER == */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #FFF2DE;
  color: #1A2238;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 -4px 22px 0 rgba(245,166,35,0.16);
  font-size: 1.1rem;
  z-index: 1200;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  justify-content: space-between;
  border-radius: 22px 22px 0 0;
  animation: cookie-slide-up 0.7s cubic-bezier(.6,.07,.47,1.54);
}
@keyframes cookie-slide-up {
  0% { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  background: #F5A623;
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  margin-right: 0;
  box-shadow: 0 1.5px 11px 0 rgba(245,166,35,0.09);
  transition: background 0.13s;
}
.cookie-banner .cookie-actions .reject {
  background: #1A2238;
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner .cookie-settings-btn:hover {
  background: #D9820A;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    font-size: 0.99rem;
    padding: 16px 7px 14px 7px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
}
/* Cookie preferences modal (pops up from center) */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 1300;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(26,34,56,0.36);
  align-items: center;
  justify-content: center;
  animation: fade-in 0.2s;
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #1A2238;
  border-radius: 20px;
  box-shadow: 0 4px 32px 0 rgba(245,166,35,0.19);
  max-width: 420px;
  min-width: 270px;
  padding: 32px 28px 22px 28px;
  animation: cookie-fade-in 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
@keyframes cookie-fade-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  margin-bottom: 7px;
  color: #F5A623;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  flex: 1;
  color: #2C2B2B;
  font-weight: 600;
  cursor: pointer;
}
.cookie-modal .toggle-switch {
  width: 40px;
  height: 22px;
  background: #E3EAFD;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  margin-left: 6px;
}
.cookie-modal .toggle-switch.checked {
  background: #F5A623;
}
.cookie-modal .toggle-switch::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 2px;
  transition: left 0.18s;
}
.cookie-modal .toggle-switch.checked::before {
  left: 18px;
  background: #fff3e1;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  padding: 9px 22px;
  border-radius: 10px;
  background: #F5A623;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.13s;
}
.cookie-modal .cookie-modal-actions .close {
  background: #1A2238;
}
.cookie-modal .cookie-modal-actions button:hover {
  background: #D9820A;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 8px; right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #9DAAF2;
  cursor: pointer;
  transition: color 0.13s;
  z-index: 1;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  color: #F5A623;
}
@media (max-width: 540px) {
  .cookie-modal {
    max-width: 95vw;
    padding: 16px 7px 14px 10px;
  }
}

/* == GENERIC FORM ELEMENTS (for contact/popup) == */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid #9DAAF2;
  margin-bottom: 18px;
  background: #fff;
  color: #1A2238;
  outline: none;
  transition: border 0.13s, box-shadow 0.13s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #F5A623;
  box-shadow: 0 0 0 2px #fbcf7b33;
}

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

/* == ANIMATION & MICRO-INTERACTION == */
.card, .feature-grid > div, .member-bio {
  transition: box-shadow 0.19s, transform 0.12s;
}
.card:active, .feature-grid > div:active, .member-bio:active {
  transform: scale(0.97);
}
button:active, .cta .cta.primary:active { transform: scale(0.97); }
a:active { outline: none; }

/* == COLOR UTILS == */
.bg-primary { background: #1A2238 !important; color: #fff; }
.bg-accent { background: #F5A623 !important; color: #fff; }
.bg-secondary { background: #9DAAF2 !important; color: #1A2238; }
.bg-light { background: #fff !important; color: #1A2238; }

/* == SCROLLBAR STYLE for desktop == */
@media (min-width: 900px) {
  ::-webkit-scrollbar {
    width: 10px;
    background: #FFEEDF;
    border-radius: 8px;
  }
  ::-webkit-scrollbar-thumb {
    background: #F5A623;
    border-radius: 8px;
  }
}

/* == ACCENT DETAILS == */
hr {
  border: none;
  border-top: 2px solid #F5A623;
  margin: 38px 0 14px 0;
  border-radius: 1px;
  opacity: 0.14;
}

/* == ACCESSIBILITY FOCUS == */
a:focus, button:focus, input:focus, .cta .cta.primary:focus {
  outline: 2px solid #9DAAF2;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #fbcf7b44;
}

/* == PRINT STYLES == */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
}
