/* ========================================================== */
/* CSS RESET & NORMALIZE - Mobile First for Monochrome Sophisticated */
/* ========================================================== */
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 {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  line-height: 1.55;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #212121;
  background: #fff;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #16213E;
  text-decoration: underline;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #2867B2;
  text-decoration: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}
button {
  cursor: pointer;
}
ul, ol {
  list-style: none;
}

/* ========================================================== */
/* TYPOGRAPHY - MONOCHROME SOPHISTICATED HIERARCHY */
/* ========================================================== */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 2.25rem; /* 36px */
  color: #0F1115;
  line-height: 1.13;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(22,33,62,0.06);
}

h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.5rem; /* 24px */
  color: #16213E;
  margin-bottom: 12px;
  line-height: 1.17;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.13rem; /* 18px */
  color: #212121;
  margin-bottom: 8px;
}

h4, .h4 {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem; /* 16px */
}
p, ul li, ol li {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #292929;
}
strong, b {
  font-weight: 700;
}

blockquote {
  border-left: 4px solid #16213E;
  padding-left: 16px;
  font-style: italic;
  color: #212121;
}

/* Main Font Youtube: Montserrat for headings, Open Sans for body */

@media (min-width: 500px) {
  h1, .h1 { font-size: 2.75rem; }
  h2, .h2 { font-size: 2rem; }
}
@media (min-width: 992px) {
  h1, .h1 { font-size: 3rem; }
}


/* ========================================================== */
/* COLOR PALETTE - MONOCHROME SOPHISTICATION */
/* ========================================================== */
:root {
  --primary: #16213E;
  --secondary: #2867B2;
  --accent: #FFD166;
  --black: #0F1115;
  --dark: #1a1a1a;
  --gray: #E6E7EB;
  --gray-dark: #656871;
  --white: #fff;
  --shadow: 0 6px 28px rgba(22,33,62,0.10);
  --card-radius: 16px;
  --section-bg: #FAFAFB;
}

/* ========================================================== */
/* CORE STRUCTURE & SECTIONS */
/* ========================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

main {
  flex: 1 0 auto;
}

.section,
.features,
.about-preview,
.cta-section,
.contact-info,
.legal,
.team,
.text-section,
.footer {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .section,
  .features,
  .about-preview,
  .cta-section,
  .contact-info,
  .legal,
  .team,
  .text-section,
  .footer {
    padding: 28px 10px;
    margin-bottom: 36px;
  }
}

/* ---------------------------------------------------------- */
/* HERO SECTIONS & SPECIAL HEADERS */
/* ---------------------------------------------------------- */
.hero,
.kosmos-hero,
.technologie-hero,
.erfindungen-hero,
.biologie-hero,
.kontakt-hero,
.thankyou-hero {
  background: var(--section-bg);
  padding: 60px 20px 60px 20px;
  margin-bottom: 0;
}
.hero .content-wrapper, 
.kosmos-hero .content-wrapper,
.technologie-hero .content-wrapper,
.erfindungen-hero .content-wrapper,
.biologie-hero .content-wrapper,
.kontakt-hero .content-wrapper, 
.thankyou-hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}
.hero h1, .kosmos-hero h1, .technologie-hero h1, .erfindungen-hero h1, .biologie-hero h1, .kontakt-hero h1, .thankyou-hero h1 {
  color: var(--primary);
  font-size: 2rem;
  line-height: 1.15;
}
@media (min-width: 800px) {
  .hero, .kosmos-hero, .technologie-hero, .erfindungen-hero, .biologie-hero, .kontakt-hero, .thankyou-hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* ========================================================== */
/* NAVIGATION - MAIN & MOBILE MENU                                    */
/* ========================================================== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--gray);
  box-shadow: 0 2px 10px rgba(22,33,62,0.04);
  position: relative;
  z-index: 1002;
}
.main-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 0 20px;
  min-height: 64px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  padding: 10px 6px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a.logo-link {
  margin-right: 18px;
  padding: 0;
  background: none;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--gray);
  color: var(--secondary);
}
.main-nav .cta-btn.primary {
  margin-left: auto;
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 40px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(22,33,62,0.08);
  border: none;
}
.main-nav .cta-btn.primary:hover, .main-nav .cta-btn.primary:focus {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(22,33,62,0.12);
}

/* Hide nav and show burger for mobile */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--primary);
  margin-left: auto;
  z-index: 1003;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--secondary);
}

@media (min-width: 1000px) {
  .mobile-menu-toggle { display: none; }
}
@media (max-width: 999px) {
  .main-nav {
    display: none;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(16,18,22,0.93);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 1200;
  transform: translateX(-110vw);
  transition: transform 0.35s cubic-bezier(.55,0,.35,1);
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 6px 0 30px rgba(0,0,0,0.33);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2.3rem;
  margin: 24px 20px 0 0;
  z-index: 1201;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 40px;
  padding: 0 44px;
}
.mobile-nav a {
  font-size: 1.38rem;
  color: var(--white);
  padding: 14px 0;
  border-radius: 6px;
  transition: background 0.13s, color 0.2s;
  text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: var(--accent);
}

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


/* ========================================================== */
/* BUTTONS - ELEGANT, MONOCHROME, INTERACTIVE */
/* ========================================================== */
.cta-btn, .cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 40px;
  padding: 12px 28px;
  font-size: 1.08rem;
  text-decoration: none;
  transition: background 0.2s, color 0.21s, box-shadow 0.22s, border 0.2s;
  box-shadow: 0 2px 8px rgba(22,33,62,0.09);
  margin-top: 8px;
  margin-bottom: 8px;
}
.cta-btn.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(22,33,62,0.11);
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cta-link {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 32px;
}
.cta-link:hover, .cta-link:focus {
  background: var(--primary);
  color: var(--white);
}

@media (max-width: 500px) {
  .cta-btn, .cta-link { font-size: 1rem; padding: 11px 18px; }
}

/* ========================================================== */
/* FLEX LAYOUTS - FORCED FLEXBOX ONLY - ALL CARDS & SECTIONS  */
/* ========================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  min-width: 260px;
  max-width: 400px;
  transition: box-shadow 0.21s, transform 0.18s;
  border: 1px solid var(--gray);
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 40px 0 rgba(22,33,62,0.13);
  transform: translateY(-2px) scale(1.012);
  z-index: 1;
  border-color: var(--secondary);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(22,33,62,0.06);
  padding: 30px 22px 28px 22px;
  margin-bottom: 20px;
  flex: 1 1 minmax(200px, 1fr);
  min-width: 220px;
  max-width: 320px;
  transition: box-shadow 0.27s;
  border: 1px solid var(--gray);
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
.feature-item h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 10px 32px rgba(22,33,62,0.18);
  border-color: var(--secondary);
  transform: translateY(-2px);
  background: #F6F8FA;
}

.feature-grid { /* Used on / main feature section */
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
@media (max-width: 1000px) {
  .feature-grid {
    gap: 16px;
    justify-content: center;
  }
  .feature-item { min-width: 180px; max-width: 100%; }
}
@media (max-width: 700px) {
  .feature-grid { flex-direction: column; gap: 12px; }
}


.team-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.team-member {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--card-radius);
  padding: 28px 18px;
  box-shadow: 0 2px 12px rgba(22,33,62,0.07);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 minmax(180px, 1fr);
  transition: box-shadow 0.2s, border 0.2s;
}
.team-member:hover, .team-member:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 6px 26px rgba(22,33,62,0.12);
}
@media (max-width: 900px) {
  .team-overview { flex-direction: column; gap: 10px; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--gray);
  border-radius: 10px;
  padding: 20px;
  margin-top: 26px;
  margin-bottom: 20px;
  color: var(--dark);
  box-shadow: 0 2px 10px rgba(34,34,34,0.07);
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.45;
  position: relative;
  border-left: 6px solid var(--secondary);
}
.testimonial-card p {
  color: var(--dark);
  font-weight: 500;
  margin-bottom: 0;
}
.testimonial-card span {
  margin-left: 16px;
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 400;
  color: var(--primary);
}

@media (max-width:700px) {
 .testimonial-card { flex-direction: column; align-items: flex-start; gap: 8px; }
 .testimonial-card span { margin-left: 0; }
}

.feature-highlights {
  background: #F6F6F8;
  padding: 22px 16px;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(22,33,62,0.10);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--gray);
}

.our-values {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 18px 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--gray);
}
.our-values h3 {
  margin-bottom: 10px;
}
.our-values ul {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.our-values li {
  font-size: 1rem;
  background: var(--gray);
  border-radius: 14px;
  padding: 7px 15px;
  margin-bottom: 0;
}

/* ========================================================== */
/* DETAILS & MISC PAGE ELEMENTS                               */
/* ========================================================== */
.text-section {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.text-section ul, .text-section ol {
  padding-left: 20px;
  margin-bottom: 8px;
  list-style-type: disc;
}
.text-section li {
  color: #252525;
  margin: 0 0 6px 0;
  font-size: 1rem;
}

/* ========================================================== */
/* FOOTER STYLING                                            */
/* ========================================================== */
.footer {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 -4px 18px rgba(22,33,62,0.07);
  margin-bottom: 0;
  padding: 50px 20px 36px 20px;
}
footer p {
  color: white;
}
.footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  width: 90px;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-direction: column;
}
.footer-nav a {
  color: var(--gray);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
  text-decoration: none;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: text-bottom;
}
.footer-contact a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}
.footer-social img {
  width: 28px;
  filter: grayscale(100%) brightness(1.18);
  opacity: 0.87;
  transition: filter 0.16s, opacity 0.16s;
}
.footer-social img:hover, .footer-social img:focus {
  filter: grayscale(0%) brightness(1.02);
  opacity: 1;
}
.footer-copy {
  width: 100%;
  text-align: left;
  margin-top: 20px;
  font-size: 0.94rem;
  color: var(--gray-dark);
}
@media (max-width: 900px) {
  .footer .content-wrapper { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-logo img { margin-bottom: 0; }
}

/* ========================================================== */
/* COOKIE CONSENT BANNER                                      */
/* ========================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--white);
  color: var(--primary);
  font-size: 1rem;
  padding: 18px 24px 18px 24px;
  box-shadow: 0 -3px 16px rgba(22,33,62,0.11);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  transform: translateY(0);
}
.cookie-banner.hidden {
  transform: translateY(120%);
}
.cookie-banner-message {
  text-align: center;
  margin-bottom: 6px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  border: none;
  border-radius: 34px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 9px 26px;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  margin: 0 4px;
  transition: background 0.17s, color 0.18s, border 0.18s;
  box-shadow: 0 1px 5px rgba(22,33,62,0.05);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--white);
}
.cookie-btn.reject {
  background: #E7E7EA;
  color: var(--dark);
}
.cookie-btn.settings {
  background: var(--white);
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--primary);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2100;
  background: rgba(21,22,29,0.68);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 56px rgba(22,33,62,0.17);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 290px;
  max-width: 99vw;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.33rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}
.cookie-modal-category {
  color: var(--dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.cookie-modal .cookie-toggle {
  width: 34px;
  height: 20px;
  border-radius: 20px;
  background: #DDD;
  appearance: none;
  margin-left: 10px;
  position: relative;
  transition: background 0.16s;
  outline: none;
}
.cookie-modal .cookie-toggle:checked { background: var(--secondary); }
.cookie-modal .cookie-toggle::after {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: left 0.15s;
}
.cookie-modal .cookie-toggle:checked::after {
  left: 17px;
}
.cookie-modal .cookie-category-desc {
  color: #54576B;
  font-size: 1rem;
  margin-left: 4px;
}
.cookie-modal-close {
  align-self: flex-end;
  color: var(--secondary);
  background: none;
  border: none;
  font-size: 1.8rem;
  margin-bottom: 16px;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ========================================================== */
/* RESPONSIVENESS - MOBILE FIRST UP, FLEX ONLY                */
/* ========================================================== */
@media (min-width: 700px) {
  .features .feature-grid, .features .content-grid {
    flex-direction: row;
    gap: 32px;
    justify-content: space-between;
  }
  .feature-item,
  .team-member {
    min-width: 230px;
    flex: 1 1 250px;
  }
}

@media (max-width: 500px) {
  .container, .section, .features, .about-preview, .cta-section, .legal, .team, .footer {
    padding-left: 6px;
    padding-right: 6px;
  }
  h1, .h1 { font-size: 1.44rem; }
  h2, .h2 { font-size: 1.09rem; }
}

/* ========================================================== */
/* Z-INDEX LAYERS                                             */
/* ========================================================== */
header { z-index: 1002; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 2000; }
.cookie-modal { z-index: 2100; }


/* ===================== END CSS ============================ */
