/* Font Face Declarations */
@font-face {
  font-family: "CopperplateGothic";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/CopperplateGothicRegular.otf") format("opentype");
}

@font-face {
  font-family: "CopperplateGothic";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/CopperplateGothicBold.otf") format("opentype");
}

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

body {
  font-family: "CopperplateGothic", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1f2025;
  background-color: #ffffff;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* Header */
.header {
  background: #ffffff;
  border-bottom: 1px solid #ccc;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo img {
  width: 120px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links li a {
  text-transform: uppercase;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
}

/* Sections */
.section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  margin-bottom: 0.5rem;
}

.section hr {
  margin: 1rem 0;
  border-top: 1px solid #ddd;
}

/* Flex Helpers */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.split > div {
  flex: 1 1 50%;
  min-width: 300px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 2rem;
  background: #f0f0f0;
}

/* Objekte Overview */
.objekts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.objekts article {
  flex: 1 1 calc(50% - 1rem);
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #eee;
  padding: 1rem;
  text-align: center;
}

/* Updated overview image height */
.objekts article img {
  height: 266px;
  object-fit: cover;
}

/* Detail Section Text */
.detail-text {
  padding-right: 1rem;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  padding: 0.5rem 1rem;
  border-radius: 50%;
}

.carousel-btn:hover {
  background: rgba(255,255,255,1);
}

.carousel-btn[data-carousel="prev"] {
  left: 0.5rem;
}

.carousel-btn[data-carousel="next"] {
  right: 0.5rem;
}

/* Carousel Track */
.carousel-track-container {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
  list-style: none;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Updated carousel image height */
.carousel-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  cursor: pointer;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.lightbox-img {
  display: block;
  max-width: 80%;
  max-height: 80%;
  margin: 5% auto;
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .split {
    flex-direction: column;
  }
  .objekts article {
    flex: 1 1 100%;
  }
}