html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #1a1a1a;
}


.navbar {
  width: 100%;
  border-bottom: 1px solid #eee;
  background: white;
}

.navbar-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0rem;
  box-sizing: border-box;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  font-weight: 600;
  color: #1a1a1a;
}

.lang-switch img {
  width: 48px;
  height: 32px;
  cursor: pointer;
}

.intro-section, .content-section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.intro-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media(min-width: 768px) {
  .intro-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.intro-text h1 {
  font-size: 2rem;
  font-weight: 800;
}

.intro-text h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #555;
}

.intro-photo img {
  max-width: 450px;
  height: auto;
}

@media(min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr; /* ← This makes them stack vertically */
  gap: 2rem;
}

.project-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1rem; /* ← Adjust this number for more/less internal spacing */
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.project-card img,
.project-card iframe {
  width: 100%;        /* makes images/videos full width */
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project-card.row-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}



@media (min-width: 768px) {
  .project-card.row-layout {
    flex-direction: row;
    align-items: center;
  }
}

.project-media {
  flex: 1;
  max-width: 50%;
}

.project-media iframe {
  width: 100%;
  height: 315px;
  border-radius: 10px;
}

.project-content {
  flex: 1;
  padding-left: 1.5rem;
}

.project-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.project-content p {
  font-size: 1rem;
  line-height: 1.6;
}

.vertical-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.side-by-side {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.side-by-side .project-media {
  flex: 1 1 300px;
}

.side-by-side .project-content {
  flex: 1 1 400px;
}

.full-width-text {
  max-width: 100%;
}

.additional-images {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.additional-images img {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Inline gallery inside Foundation Station card */
.inline-gallery {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.inline-gallery img {
  width: calc(50% - 0.25rem);
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Simple project cards (no media column) */
.project-card.simple-card {
  padding: 1.5rem 2rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-card.simple-card h2 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.project-card.simple-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.project-link-btn {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.project-link-btn:hover {
  opacity: 0.6;
}

.project-preview-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}

/* Collapsible NR reconstruction text */
.collapsible-text {
  display: none;
}

.collapsible-text.expanded {
  display: block;
}

.show-more-btn {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  padding: 0.25rem 0;
  margin-top: 0.25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.show-more-btn:hover {
  color: #1a1a1a;
}

/* Academic Projects section */
.section-intro {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.5rem;
}

.academic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .academic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.academic-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #1a1a1a;
}

.academic-card h2 {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.academic-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

.academic-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.25rem;
}

.academic-status.accepted {
  color: #2a7d2a;
}

.academic-status.published {
  color: #2a7d2a;
}

.academic-card-full {
  grid-column: 1 / -1;
}

.academic-authors {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.academic-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.academic-status.coming-soon {
  color: #888;
}

/* Footer */
.site-footer {
  border-top: 1px solid #eee;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0 2rem;
}

.footer-container a {
  text-decoration: none;
  color: #888;
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-container a:hover {
  color: #1a1a1a;
}

/* Legal pages (Privacy Policy, Impressum) */
.legal-section {
  max-width: 700px;
}

.legal-section h1 {
  margin-bottom: 0.25rem;
}

.legal-updated {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-section p,
.legal-section li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

.legal-section ul {
  padding-left: 1.5rem;
}

.legal-section a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 2px;
}