body {
  margin: 0;
  overflow: auto;
  min-height: 100vh;
  padding-top: 70px;
  background-color: #eaf4ff;
  font-family: "Source Sans 3", sans-serif;
}

p {
  font-weight: 350;
}

body.home {
  background-image:
    linear-gradient(#dbe3ed 1px, transparent 1px),
    linear-gradient(90deg, #dbe3ed 1px, transparent 1px);

  background-size: 25px 25px;

  margin: 0;
  padding: 0;
  overflow: hidden; /* 🔥 verhindert normales Scrollen */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.content {
  max-width: 1100px;
}

.home .canvas {
  width: 4000px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-auto-rows: 1fr;

  gap: 60px;
  padding: 100px;
}

.canvas img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.canvas img:hover {
  filter: brightness(0.8);
  transform: scale(1.03);
}

.switch {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 20px;

  background: white;
  padding: 10px 20px;
  border-radius: 30px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 2000;
}

.switch button {
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.6;
}

.switch button.active {
  opacity: 1;
  font-weight: 600;
}

img {
  background-color: #fff;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 0 30px;
  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nav-right a.active {
  font-weight: 600;
  border-bottom: 2px solid black;
}

.nav-logo {
  height: 36px;
  width: auto;
  display: block;
}

.nav-center {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.nav-right a {
  text-decoration: none;
  color: black;
  font-size: 16px;
  transition: opacity 0.2s ease;
}

.nav-right a:hover {
  opacity: 0.6;
}

main.content {
  display: flex;
  gap: 40px;
  padding: 40px;
  height: calc(100vh - 70px);
}

/* linke Spalte: Tabs / Kategorien */
.tabs {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  border-right: 1px solid #eee;
  padding-right: 20px;
  gap: 15px;
}

.tab-btn {
  padding: 10px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  color: #555;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: #000;
  font-weight: 600;
  border-left: 3px solid #000;
  padding-left: 8px;
}

.tab-btn:hover {
  color: #000;
}

/* rechte Spalte: Content */
.tab-content {
  flex: 1;
  padding-left: 20px;
  overflow-y: visible;
  max-height: calc(100vh - 80px);
}

.tab-content h2 {
  margin-top: 0;
  font-size: 24px;
  margin-bottom: 15px;
}

.tab-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
}

.tab-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Scrollbar dezent */
.tab-content::-webkit-scrollbar {
  width: 6px;
}

.tab-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

@media (max-width: 900px) {
  main.content {
    flex-direction: column;
    padding: 20px;
  }

  .tabs {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-right: 0;
    padding-bottom: 10px;
  }

  .tab-btn {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 15px;
  }

  .tab-btn.active {
    border-left: none;
    border-bottom: 3px solid #000;
  }
}

.infos-layout {
  display: grid;
  grid-template-columns: 1fr 450px;
}

.infos-header {
  grid-column: 1 / -1;
  /* überspannt beide Spalten */
}

.infos-data {
  grid-column: 1;
}

.infos-image {
  grid-column: 2;
  align-self: end;
  /* Bild sitzt unten rechts */
}

.infos-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#img-infos {
  background-color: rgba(255, 255, 255, 0);
}

@media (max-width:900px) {
  .infos-layout {
    grid-template-columns: 1fr;
  }

  .infos-image {
    grid-column: 1;
  }
}

a {
  color: #111;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.project-page {
  display: flex;
  gap: 60px;
  height: calc(100vh - 70px);
  padding: 20px 40px;
}

.project-info {
  flex: 1;
  max-width: 500px;
  overflow: hidden;
  /* Infoblock scrollt nicht */
}

.project-info h2 {
  margin-bottom: 20px;
  font-family: "Source Sans 3";
}

body.projekt {
  overflow-y: hidden;
}

.swiper.mySwiper {
  flex: 1;
  height: 100%;
  overflow: visible;
}

.swiper-slide-active img {
  transform: scale(1);
}

.swiper {
  height: 90vh;
}

.swiper-slide {
  scroll-snap-align: center;
  height: auto;
  transition: transform 0.3s ease;
}

.swiper-wrapper {
  align-items: center;
}

.image-card {
  position: relative;
  width: 100%;
}

.image-inner {
  position: relative;
  transform: scale(0.85);
  transition: transform 0.6s ease;
}

.swiper-slide-active .image-inner {
  transform: scale(1);
}

.main-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px 14px 10px 14px;
  color: white;
  font-size: 13px;

  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.72),
      rgba(0, 0, 0, 0));
}

.detail-img {
  position: absolute;
  right: -40px;
  bottom: 40px;
  width: 140px;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.6s, box-shadow 0.3s;
}

.detail-img:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}