/* KrystalShift Forschungslabor - Scandinavian Clean CSS */
/* 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,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F5F3F0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F5F3F0;
  color: #232323;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* BRAND FONTS */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab'), local('RobotoSlab'), url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans'), url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
}

/* ------ SPACING & LAYOUT ------ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(20,33,61,0.06);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20,33,61,0.07);
  padding: 32px 24px;
  flex: 1 1 320px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(20,33,61,0.13);
}
.content-grid, .features-grid, .equipment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section, .content-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F3F0;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(20,33,61,0.06);
  margin-bottom: 20px;
  flex-direction: column;
  color: #232323;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------ TYPOGRAPHY ------ */
h1, .hero h1, .thank-you-hero h1 {
  font-family: 'Roboto Slab', serif;
  color: #14213D;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
h2 {
  font-family: 'Roboto Slab', serif;
  color: #14213D;
  font-size: 2rem;
  margin-bottom: 18px;
  font-weight: 700;
}
h3 {
  font-family: 'Roboto Slab', serif;
  color: #14213D;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
p, ul, ol, li, blockquote {
  color: #232323;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 12px;
  line-height: 1.7;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 9px;
  list-style: disc;
}
a {
  color: #14213D;
  text-decoration: underline;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #8AC926;
  outline: none;
}
blockquote {
  font-style: italic;
  color: #14213D;
  background: #EAE7E1;
  border-left: 4px solid #8AC926;
  padding: 16px 28px;
  margin-bottom: 10px;
  border-radius: 12px;
}

strong {
  font-weight: 700;
  color: #14213D;
}

/* ------ HEADER / NAVIGATION ------ */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(20,33,61,0.04);
  padding: 0;
  position: relative;
  z-index: 11;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  min-height: 80px;
}
header img {
  max-height: 48px;
  display: block;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: #14213D;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  padding: 7px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a:focus {
  color: #fff;
  background: #8AC926;
}
.cta-btn {
  background: #8AC926;
  color: #14213D;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  padding: 12px 32px;
  border: none;
  border-radius: 28px;
  font-size: 1.13rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(20,33,61,0.09);
  transition: background-color 0.16s, box-shadow 0.16s;
  display: inline-block;
  margin-left: 16px;
}
.cta-btn:hover, .cta-btn:active, .cta-btn:focus {
  background-color: #6aa719;
  color: #fff;
  box-shadow: 0 5px 18px rgba(20,33,61,0.15);
  text-decoration: none;
  outline: none;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: #8AC926;
  color: #14213D;
  font-size: 2.2rem;
  border-radius: 50%;
  border: none;
  z-index: 1101;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20,33,61,0.10);
  align-items: center;
  justify-content: center;
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #6aa719;
  color: #fff;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: #fff;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1300;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.75,0.1,0.38,1);
  box-shadow: -6px 0 36px rgba(20,33,61,0.16);
  padding: 0 0 0 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 26px 8px 0;
  font-size: 2.2rem;
  background: #F5F3F0;
  border: none;
  color: #14213D;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 8px rgba(20,33,61,0.08);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #EAE7E1;
  color: #6aa719;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px 32px;
  gap: 14px;
}
.mobile-nav a {
  color: #14213D;
  background: none;
  font-size: 1.18rem;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 16px 0 16px 0;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 2px;
  font-weight: 600;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #F5F3F0;
  color: #8AC926;
}

/* ------ HERO SECTIONS ------ */
.hero, .thank-you-hero {
  background: #F5F3F0;
  padding: 70px 0 60px 0;
  margin-bottom: 0px;
}
.hero .container, .thank-you-hero .container {
  align-items: flex-start;
}
.hero h1, .thank-you-hero h1 {
  font-size: 2.4rem;
}
.hero p, .thank-you-hero p {
  font-size: 1.18rem;
  color: #232323;
  margin-bottom: 24px;
}

/* ------ FEATURE / CARD / GRID ELEMENTS ------ */
.features-grid, .equipment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature, .equipment {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(20,33,61,0.08);
  padding: 32px 18px 26px 24px;
  min-width: 240px;
  max-width: 320px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.16s;
}
.feature:hover, .equipment:hover {
  box-shadow: 0 4px 15px rgba(20,33,61,0.13);
  transform: translateY(-2px) scale(1.018);
}
.feature img, .equipment img {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
}

/* Short about and contact sections */
.about-short .content-wrapper,
.contact-short .content-wrapper {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.about-short ul, .about-mission ul {
  list-style: disc;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 1rem;
}
.contact-info img {
  width: 18px;
  height: 18px;
  margin-right: 9px;
  vertical-align: middle;
}

/* ------ TESTIMONIALS ------ */
.testimonials {
  padding: 60px 0 32px 0;
  background: #F5F3F0;
  margin-bottom: 0;
}
.testimonials .container {
  flex-direction: column;
  gap: 24px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.testimonial-card {

  color: #232323;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(20,33,61,0.09);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  min-width: 280px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.testimonial-card blockquote {
  color: #14213D;
  background: #EAE7E1;
  border-left: 4px solid #8AC926;
  margin-bottom: 10px;
  font-size: 1.02rem;
  padding: 13px 22px;
  border-radius: 8px;
}
.testimonial-card p {
  color: #232323;
  font-size: 1rem;
  margin-bottom: 0;
}
.partners {
  display: flex;
  gap: 35px;
  align-items: center;
  margin-top: 20px;
}
.partners img {
  height: 40px;
  opacity: 0.89;
}

/* ------ FORMS, BUTTONS & INTERACTIVES ------ */
button, .cta-btn, input[type="submit"] {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  outline: none;
  border: none;
}
button:focus {
  outline: 2px solid #8AC926;
  outline-offset: 2px;
}

/* ------ PUBLICATIONS / LEGAL / LIST ------ */
.publications ul,
.legal ul,
.services ul,
.workshops ul,
.events-list ul,
.lab-specials ul,
.opening-hours-directions ul {
  margin-bottom: 20px;
  list-style: disc inside;
  color: #232323;
  font-size: 1rem;
}
.publications li, .legal li, .services li, .workshops li, .events-list li, .lab-specials li, .opening-hours-directions li {
  margin-bottom: 14px;
  line-height: 1.7;
}
.publications span {
  color: #6F6F6F;
  font-size: 0.98rem;
}
.publications a {
  color: #8AC926;
  text-decoration: underline;
}

/* ------ MAP EMBED / CONTACT DETAILS ------ */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}
.contact-block, .map-embed {
  flex: 1 1 260px;
}
.map-embed img {
  width: 48px;
  margin-bottom: 8px;
}

/* ------ FOOTER ------ */
footer {
  background: #fff;
  box-shadow: 0 -2px 15px rgba(20,33,61,0.05);
  padding: 0 0 0 0;
  margin-top: auto;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 20px 15px 20px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: #6F6F6F;
  font-size: 0.99rem;
  text-decoration: none;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #8AC926;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.97rem;
}
.footer-contact img {
  width: 16px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-social {
  display: flex;
  gap: 18px;
  margin: 13px 0;
}
.footer-social img {
  width: 26px;
  height: 26px;
}
.footer-copy {
  align-self: center;
  color: #9B9B9B;
  font-size: 0.89rem;
}

/* ------ CALLOUT SECTION ------ */
.callout {
  background-color: #EAE7E1;
  margin-top: 38px;
  padding: 36px 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.callout .container, .callout .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.callout .cta-btn {
  margin-left: 0;
  margin-top: 0;
}

/* ------ LEGAL PAGE HEADINGS ------ */
.legal h1 {
  font-size: 2rem;
  margin-bottom: 13px;
}
.legal h2, .legal h3 {
  font-size: 1.2rem;
  margin-bottom: 9px;
}
.text-section {
  margin-bottom: 20px;
}

/* ------ RESPONSIVENESS ------ */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
  .features-grid, .equipment-grid {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 72px;
    padding: 12px 16px 12px 16px;
  }
  .main-nav {
    gap: 16px;
    flex-wrap: wrap;
  }
  .footer-nav {
    gap: 16px;
    flex-direction: column;
    flex-wrap: wrap;
  }
}
@media (max-width: 850px) {
  .features-grid, .equipment-grid {
    flex-direction: column;
    gap: 20px;
  }
  .partners {
    gap: 14px;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0 !important;
    margin-top: 10px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    min-height: 62px;
    padding: 11px 14px; 
  }
  .container {
    padding: 0 12px;
  }
  .features-grid, .equipment-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .about-short .content-wrapper,
  .contact-short .content-wrapper,
  .content-wrapper, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .partners {
    flex-direction: row;
    justify-content: flex-start;
  }
  .card {
    padding: 20px 14px;
  }
  .section {
    margin-bottom: 36px;
    padding: 22px 8px;
  }
  .hero, .thank-you-hero {
    padding: 45px 0 30px 0;
  }
  .callout .container, .callout .content-wrapper {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-social {
    gap: 7px;
  }
  .footer-contact {
    font-size: 0.92rem;
    gap: 2px;
  }
}
@media (max-width: 525px) {
  html {
    font-size: 15px;
  }
  h1, .hero h1, .thank-you-hero h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.30rem;
  }
  .cta-btn {
    padding: 10px 18px;
    font-size: 0.99rem;
  }
  .container {
    padding: 0 5px;
    min-width: 0;
    max-width: 100vw;
  }
}
@media (max-width: 420px) {
  h1, .hero h1, .thank-you-hero h1 {
    font-size: 1.22rem;
  }
  .section {
    padding: 9px 2px;
  }
}

/* ------ COOKIE CONSENT BANNER ------ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #232323;
  box-shadow: 0 -2px 34px rgba(20,33,61,0.17);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  gap: 20px;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.3s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  margin-bottom: 0;
  color: #232323;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-btn, .cookie-settings-btn {
  background: #8AC926;
  color: #14213D;
  border: none;
  padding: 10px 20px;
  border-radius: 24px;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.14s;
  box-shadow: 0 2px 8px rgba(20,33,61,0.08);
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #6aa719;
  color: #fff;
}
.cookie-btn.reject {
  background: #ddd;
  color: #14213D;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #bdbdbd;
  color: #fff;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    justify-content: flex-start;
    padding: 18px 13px;
    font-size: 0.98rem;
    gap: 10px;
  }
  .cookie-banner-buttons {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
}

/* Cookie Settings Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 2100;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(20,33,61,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(20,33,61,0.14);
  max-width: 390px;
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  animation: modalUp 0.24s cubic-bezier(0.63,0.21,0.44,1) 1;
}
@keyframes modalUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.cookie-modal h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
}
.cookie-modal-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-cat {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  background: #F5F3F0;
  border-radius: 8px;
  padding: 10px 15px;
}
.cookie-cat label {
  font-family: 'Open Sans', Arial;
  font-size: 1rem;
  color: #232323;
  font-weight: 500;
}
.cookie-cat .switch {
  margin-left: auto;
  display: inline-block;
}
/* Custom switch */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 21px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  background-color: #CDCDCD;
  border-radius: 21px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.18s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 1px 5px rgba(20,33,61,0.11);
}
.switch input:checked + .slider {
  background-color: #8AC926;
}
.switch input:checked + .slider:before {
  transform: translateX(17px);
}
/* Close button modal */
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 20px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #232323;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s, color 0.18s;
  padding: 0 7px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #8AC926;
  color: #fff;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 6px;
}
.cookie-modal-actions button {
  min-width: 99px;
}
@media (max-width: 525px) {
  .cookie-modal {
    max-width: 94vw;
    padding: 22px 9px 18px 13px;
    gap: 8px;
  }
}

/* ------ MICRO-INTERACTIONS / TRANSITIONS ------ */
a, .cta-btn, button, input[type="submit"] {
  transition: all 0.16s cubic-bezier(0.6,0.2,0.18,1);
}
.feature, .equipment, .card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .feature:hover, .equipment:hover, .testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(20,33,61,0.15);
  transform: translateY(-3px) scale(1.012);
}

/* ------ MISC ------ */
::-webkit-scrollbar {
  width: 10px;
  background: #F5F3F0;
}
::-webkit-scrollbar-thumb {
  background: #EAE7E1;
  border-radius: 7px;
}

/* Fix for focusable but hidden elements (e.g. nav on mobile) */
[tabindex="-1"]:focus {
  outline: none !important;
}
