@font-face {
  font-family: 'Doto';
  src: url('fonts/Doto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Doto';
  src: url('fonts/Doto-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}


/* === Grundfarben und Schriftarten === */
:root {
  --bg-color: #f8f9fa;
  --text-color: #000;
  --accent-color: #304e61;
  --tool-bg: #e9ecef;
  --tool-text: #333;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Doto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  font-variation-settings: "ROND" 0;
  background-color: pink;
  color: var(--text-color);
  line-height: 1.1;
  text-align: center;
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.project {
  margin-bottom: 1rem;
}

.title {
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.subtitle {
  font-size: 2.6rem;
  font-weight: 600;
  color: #222;
  margin-bottom: .1rem;
  margin-top: .1rem;
  text-align: center;
}

.description {
  margin-bottom: 1rem;
  text-align: center;
}
.main-desc{
  margin-bottom: 10rem;}

/* === Tools === */
.tools {
  margin-bottom: 1rem;
}

.tool {
  display: inline-block;
  background-color: var(--tool-bg);
  color: var(--tool-text);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

/* === Bilder in normalem Layout === */
/* .media {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
} */

.media img {
  width: 50%;
  max-width: 400px;
  height: auto;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.media img:hover {
  transform: scale(1.02);
}
/* 
.media--small {
  text-align: center;
  margin-bottom: .1rem;
} */
/* 
.media--small img:hover {
  transform: scale(1.02);
} */

/* Mehrere Bilder nebeneinander */
.media img:not(:only-child) {
  width: calc(50% - 0.5rem);
}


/* === Lightbox === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.8);
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* === Projekt mit Bild links / Text rechts === */
.media-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  margin: 2rem 0;
}

.media-img {
  flex: 1 1 45%;
  max-width: 50%;
  cursor: pointer;
}

.media-img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.media-img img:hover {
  transform: scale(1.02);
}

.media-text {
  flex: 2 1 300px;
  /* text-align: left; */
}


  .media-img,
  .media-text {
    max-width: 100%;
  }
  /* === Carousel / Slideshow === */
.project-group {
  margin: 2rem 0;
}

.group-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-align: center;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

.carousel-item {
  display: flex;
  flex-direction: row;
  flex: 0 0 90%;
  max-width: 90%;
  scroll-snap-align: start;
  /*background: rgba(255,255,255,0.1);
  border-right: 3px dotted #333333;
  border-left: 3px dotted #333333;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);*/
  padding: 1rem;
  border-radius: 8px;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.carousel-img {
  width: 50%;
  max-width: 50%;
  border-radius: 6px;
  cursor: pointer;
}

.carousel-content {
  flex: 1;
}

.carousel-title {
  font-size: 20.8rem;
  margin: 0.5rem 0;
}

.carousel-subtitle {
  font-size: 1.8rem;
  margin: 0.3rem 0;
}

.carousel-desc {
  font-size: 1.0rem;
  line-height: 1.4;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 20%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.5);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn.left {
  left: 0.1rem;
}

.carousel-btn.right {
  right: 0.1rem;
}

.media-slider {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.slider-img {
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  scroll-snap-align: center;
  flex: 0 0 100%;
}

.slider-btn {
  position: absolute;
  background: rgba(255,255,255,0.6);
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.slider-btn.left {
  left: 0.5rem;
}
.slider-btn.right {
  right: 0.5rem;
}


/* Responsive Anpassungen für Carousel */
@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 90%;
  }
}

/* Responsive Fallback für media-row */
@media (max-width: 768px) {
  .media-row {
    flex-direction: column;
  }

  .media-img,
  .media-text {
    max-width: 100%;
  }
  
  .carousel-item {
    flex-direction: column;
    text-align: center;
  }

  .carousel-img {
    width: 100%;
    max-width: 100%;
  }
}