/* ================================================== */
/*            LUFTGENUSS FORSCHUNG STYLE.CSS          */
/*        Geometric Structured Design – Mobile First   */
/* ================================================== */

/* ==== 1. CSS RESET & NORMALIZE ==== */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #1A2D40;
  background: #fff;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #5BC2B0;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1A2D40;
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
  object-fit: contain;
}
ul, ol {
  list-style-position: inside;
}

/* ===== GEOMETRIC & TYPOGRAPHIC BASE ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Cambria, 'Times New Roman', serif;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1A2D40;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
  text-transform: uppercase;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
p, ul, ol, blockquote, label {
  font-size: 1rem;
  margin-bottom: 14px;
}
strong {
  font-weight: 700;
}
blockquote {
  border-left: 4px solid #5BC2B0;
  margin: 24px 0;
  padding: 12px 18px;
  color: #1A2D40;
  background: #EAEAEA;
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem;
}

/* ===== COLOR VARIABLES ===== */
:root {
  --primary: #1A2D40;
  --secondary: #EAEAEA;
  --accent: #5BC2B0;
  --white: #fff;
  --dark: #1A2D40;
  --shadow: rgba(26,45,64,0.08);
  --shadow-hover: rgba(26,45,64,0.13);
}

/* ====== LAYOUT CONTAINER/SECTION STYLES ====== */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* ========== HEADER & NAV ========== */
header {
  background: var(--white);
  box-shadow: 0 3px 14px var(--shadow);
  min-height: 66px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px 18px;
  gap: 0;
}
header a img {
  height: 36px;
}
.main-nav {
  display: none;
}
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--primary);
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 30px;
  border-radius: 18px 2px 18px 2px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.15em;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.2s, color 0.2s, box-shadow 0.23s, transform 0.15s;
  text-transform: uppercase;
  text-decoration: none;
}
.button-primary:hover, .button-primary:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 18px var(--shadow-hover);
  transform: translateY(-2px) scale(1.03);
}
.button-link {
  display: inline-block;
  color: var(--primary);
  border: 2px solid var(--accent);
  border-radius: 0 12px 0 12px;
  padding: 7px 22px;
  background: none;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .95rem;
  letter-spacing: .12em;
  transition: background 0.23s, color 0.17s, border 0.17s, transform 0.13s;
}
.button-link:hover, .button-link:focus {
  background: var(--accent);
  color: var(--white);
  border-color: var(--primary);
  transform: scale(1.05);
}
.mobile-menu-toggle {
  display: inline-flex;
  font-size: 2.1rem;
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  margin-left: 12px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 46px;
  transition: background 0.21s, color 0.11s;
  z-index: 9991;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--accent);
}

@media (min-width: 820px) {
  .main-nav {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    margin-left: 32px;
    font-size: 1.03rem;
    font-family: 'Roboto Slab', serif;
    letter-spacing: .11em;
  }
  .main-nav a {
    color: var(--primary);
    font-weight: 700;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.17s, border-bottom 0.18s;
  }
  .main-nav a:hover, .main-nav a:focus, .main-nav a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0 8px 32px var(--shadow-hover);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.7,0.1,0.3,1);
  display: flex;
  flex-direction: column;
  padding-top: 40px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 25px;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 10001;
  transition: color 0.18s, background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 44px 28px 14px 32px;
  margin-top: 14px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 7px;
  padding: 10px 4px 10px 2px;
  transition: background 0.19s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--white);
}

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

/* ========== HERO SECTION ========= */
.hero {
  background-color: var(--primary);
  color: var(--white);
  min-height: 400px;
  padding: 54px 0 46px 0;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 540px;
  gap: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
}
.hero p {
  margin-bottom: 16px;
  font-size: 1.18rem;
  color: var(--secondary);
}
.hero .button-primary {
  margin-top: 8px;
  box-shadow: 0 2px 16px var(--shadow-hover);
}

@media (max-width: 768px) {
  .hero {
    min-height: 200px;
    padding: 36px 0 26px 0;
  }
  .hero h1 {
    font-size: 1.55rem;
  }
  .hero .content-wrapper {
    padding-left: 0;
    max-width: 100%;
  }
}

/* ========== FEATURES GRID ========= */
.features {
  background: var(--secondary);
  border-radius: 0 32px 0 32px;
  box-shadow: 0 8px 32px var(--shadow);
  margin-bottom: 60px;
}
.features .content-wrapper {
  align-items: flex-start;
}
.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}
.feature {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 22px 18px 21px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 12px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.15s;
}
.feature img {
  height: 38px;
  width: 38px;
  margin-bottom: 4px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 6px 22px var(--shadow-hover);
  transform: rotate(-1.5deg) scale(1.02);
}

@media (min-width: 768px) {
  .feature-grid {
    flex-direction: row;
    gap: 28px;
  }
  .feature {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 350px;
  }
}

/* ===== INFORMATION SECTIONS (geometric_structured) ===== */
.about-short, .cta-contact {
  background: var(--white);
  border-radius: 0 18px 0 18px;
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 60px;
  padding: 38px 20px 32px 20px;
}

.cta-contact {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-contact .content-wrapper {
  align-items: center;
  gap: 20px;
}

/* ========= CARDS & LIST CONTAINER STYLES ========= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 12px 0 20px 0;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.20s, transform 0.14s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 22px var(--shadow-hover);
  transform: translateY(-4px) scale(1.02);
}
.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: var(--secondary);
  border-radius: 0 20px 0 18px;
  box-shadow: 0 2px 12px var(--shadow);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* ========= TEAM/PROJECTS SPECIAL GRIDS ========= */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.team-member {
  background: var(--secondary);
  border-radius: 14px 0 14px 0;
  box-shadow: 0 1px 5px var(--shadow);
  padding: 18px 15px;
  min-width: 220px;
  flex: 1 1 180px;
  margin-bottom: 20px;
  transition: box-shadow 0.13s, transform 0.11s;
}
.team-member:hover, .team-member:focus-within {
  box-shadow: 0 4px 18px var(--shadow-hover);
  transform: scale(1.03) skewY(-1.5deg);
}
@media (max-width: 768px) {
  .team-grid {
    flex-direction: column;
    gap: 12px;
  }
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}
.project-teaser {
  background: var(--white);
  border-left: 7px solid var(--accent);
  box-shadow: 0 2px 11px var(--shadow);
  border-radius: 0 13px 0 13px;
  padding: 18px 15px;
  margin-bottom: 20px;
  position: relative;
}
.status-tag {
  display: inline-block;
  font-size: 0.93rem;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  padding: 3px 13px 3px 13px;
  border-radius: 8px 0 8px 0;
  margin-left: 8px;
  font-weight: 600;
}
.project-highlight {
  background: var(--accent);
  color: var(--white);
  border-radius: 0 22px 0 14px;
  padding: 24px 16px;
  margin-bottom: 19px;
  box-shadow: 0 2px 10px var(--shadow);
}
@media (max-width: 768px) {
  .project-list {
    gap: 16px;
  }
}

/* ====== PUBLICATION/MEDIA LOGOS/LISTS ====== */
.publication-list, .media-mentions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.publication {
  background: var(--secondary);
  border-radius: 10px 0 12px 0;
  padding: 18px 15px;
  margin-bottom: 20px;
}
.publication-filter {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}
.media-logos {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
}
.media-logos img {
  height: 32px;
}

/* ========== FOOTER AREA ========== */
footer {
  background: var(--primary);
  color: var(--secondary);
  border-top: 6px solid var(--accent);
  padding: 32px 0 0 0;
  margin-top: 60px;
  font-size: 1rem;
}
.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 18px;
}
footer img {
  height: 34px;
}
.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--secondary);
  font-weight: 600;
  font-size: .97rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.16s, color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .96rem;
  color: var(--secondary);
}
.will-fade .contact-details p {
  color: #1A2D40;
}
.contact-details img {
  vertical-align: middle;
  margin-right: 8px;
  height: 18px;
}
.social-media-links {
  display: flex;
  gap: 15px;
  margin-top: 6px;
}
.social-media-links a img {
  height: 26px;
  filter: grayscale(1) brightness(2);
  transition: filter 0.14s;
}
.social-media-links a:hover img,
.social-media-links a:focus img {
  filter: grayscale(0) brightness(1.1) drop-shadow(0 2px 6px var(--accent));
}
footer .copyright {
  border-top: 1px solid var(--accent);
  font-size: .92rem;
  text-align: left;
  margin-top: 9px;
  color: var(--secondary);
  padding: 12px 0 20px 0;
}
@media (min-width: 800px) {
  .brand-footer {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
    justify-content: flex-start;
  }
  .footer-nav {
    margin-left: 10px;
  }
}

/* ======= FORM FIELDS (if present) ======= */
input, select, textarea {
  padding: 10px 12px;
  border-radius: 7px;
  border: 2px solid var(--accent);
  font-size: 1.04rem;
  background: #F6F6F6;
  color: var(--primary);
  outline: none;
  font-family: 'Source Sans Pro', sans-serif;
  transition: border-color 0.15s, background 0.14s;
  margin-bottom: 14px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  background: var(--secondary);
}
label {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}
button, input[type='submit'] {
  font-family: 'Roboto Slab', serif;
}

/* ========== THANK YOU MESSAGE ========= */
.thank-you-message, .map-hint {
  background: var(--secondary);
  border-radius: 10px 0 12px 0;
  padding: 16px 18px;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 1.08rem;
}

/* ========== COOKIE BANNER & MODAL ========= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--secondary);
  color: var(--primary);
  z-index: 99998;
  box-shadow: 0 -4px 32px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 12px 18px 12px;
  font-size: 1rem;
  animation: cookieBannerIn 0.55s cubic-bezier(0.25,0.85,0.45,1.5);
}
@keyframes cookieBannerIn {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.cookie-btn {
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  border-radius: 7px 0 12px 0;
  padding: 10px 22px;
  border: 2px solid var(--accent);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  margin-right: 0;
  transition: background 0.16s, color 0.16s, border 0.16s, transform 0.13s;
}
.cookie-btn.accept {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.cookie-btn.reject {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--white);
  border-color: var(--accent);
  transform: scale(1.04);
}

/* Cookie Modal Styles */
.cookie-modal-overlay {
  position: fixed;
  z-index: 99999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(26, 45, 64, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieOverlayIn 0.3s ease;
}
@keyframes cookieOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  border-radius: 18px 0 18px 0;
  box-shadow: 0 8px 44px var(--shadow-hover), 0 3px 16px var(--shadow);
  max-width: 385px;
  width: 90vw;
  padding: 35px 28px 20px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: cookieModalIn 0.35s cubic-bezier(.7,.3,.25,1) both;
}
@keyframes cookieModalIn {
  from { transform: translateY(40px) scale(0.98);
    opacity: 0.6; }
  to   { transform: translateY(0px) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 9px; right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  color: var(--accent);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 10px 0 8px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--secondary);
  border-radius: 7px 0 14px 0;
  padding: 8px 14px;
  font-size: .99rem;
  font-family: 'Source Sans Pro', sans-serif;
}
.cookie-category.essential {
  opacity: .75;
  font-style: italic;
}
.cookie-category-label {
  flex: 1 1 auto;
}
.cookie-toggle {
  min-width: 34px;
  min-height: 18px;
  appearance: none;
  width: 34px; height: 18px;
  background: #eee;
  border-radius: 10px;
  box-shadow: inset 0 2px 6px #bbb;
  position: relative;
  vertical-align: middle;
  outline: none;
  transition: background 0.15s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  top: 1px;
  left: 2px;
  transition: left 0.16s, background 0.14s;
}
.cookie-toggle:checked::after {
  left: 16px;
  background: var(--white);
}
.cookie-modal .cookie-btn-group {
  margin-top: 15px;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .cookie-modal {
    padding: 19px 7vw 10px 7vw;
    max-width: 99vw;
  }
}

/* ========== RESPONSIVENESS & SPACING ========== */
@media (max-width: 600px) {
  .container {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  section, .section {
    padding: 24px 3vw !important;
  }
}
@media (max-width: 370px) {
  h1 { font-size: 1.15rem; }
  h2 { font-size: 1.0rem; }
  .button-primary { font-size: .95rem; }
}

/* ========== MICRO-INTERACTIONS & ANIMATIONS ========== */
.button-primary, .button-link, .cookie-btn {
  transition: background 0.16s, color .17s, box-shadow 0.21s, transform 0.11s, border 0.16s, letter-spacing 0.13s;
  will-change: background, color, transform;
}
.feature, .card, .team-member, .testimonial-card, .publication {
  transition: box-shadow 0.18s, transform 0.14s;
  will-change: box-shadow, transform;
}

/* ========== GENERAL UTILITIES ========= */
.text-section, .research-highlights { background: transparent; }
.icons-row {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 12px 0;
}
.icons-row img { height: 40px; }

/* Ensure minimum 20px margin between all major cards/sections */
.section + .section, .about-short + .cta-contact, .content-wrapper > * + * {
  margin-top: 20px;
}

/* Ensure dark text on light backgrounds for testimonials, reviews */
.testimonial-card, .publication {
  color: #1A2D40 !important;
  background: #EAEAEA !important;
}

/* ========== ACCESSIBILITY: FOCUS RINGS ========= */
a:focus, button:focus, input:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1.5px;
  z-index: 2;
}

/* Hide visually but keep for screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
  border: 0;
}
