@charset "utf-8";

html {
  box-sizing: border-box;
}

*, ::before, ::after {
  box-sizing: inherit;
}

body {
  margin: 0 auto;
  padding: 0;
  font-family: Calibri;
}

body > * {
  padding: 1em;
  margin: 1em 0;
}

/* NAVBAR STYLING STARTS */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background-color: #5c0e2e;
  color: #fff;
  font-family: Century;
  font-size: 16pt;
}

.nav-links a {
  color: #f2f2f2;
}

/* LOGO */
.logo img {
  width: 280px;
  height: 100px;
}

/* NAVBAR MENU */
.menu {
  display: flex;
  gap: 1em;
  font-size: 18px;
}

.menu li:hover {
  background-color: #ddd;
  border-radius: 5px;
  transition: 0.3s ease;
}

.menu li {
  list-style-type: none;
  padding: 5px 14px;
}

/* DROPDOWN MENU */
.services {
  position: relative;
}

.dropdown {
  background-color: #5c0e2e;
  padding: 1em 0;
  position: absolute;
  display: none;
  border-radius: 14px;
  top: 35px;
}

.dropdown li + li {
  margin-top: 10px;
}

.dropdown li {
  padding: 0.5em 0.5em;
  width: 8em;
  text-align: center;
}

.dropdown li:hover {
  background-color: #f2f2f2;
}

.services:hover .dropdown {
  display: block;
}

/* RESPONSIVE NAVBAR MENU STARTS */
input[type=checkbox] {
  display: none;
}

.hamburger {
  display: none;
  font-size: 24px;
  user-select: none;
}

@media (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    background-color: #5c0e2e;
    right: 0;
    left: 0;
    text-align: center;
    padding: 16px 0;
  }

  .menu li:hover {
    display: inline-block;
    background-color: #f2f2f2;
    transition: 0.3s ease;
  }

  .menu li + li {
    margin-top: 12px;
  }

  input[type=checkbox]:checked ~ .menu {
    display: block;
  }

  .hamburger {
    display: block;
  }

  .dropdown {
    left: 50%;
    top: 30px;
    transform: translateX(35%);
  }

  .dropdown li:hover {
    background-color: #f2f2f2;
  }

  /* GALLERY MOBILE FIXES - ALL IN ONE MEDIA QUERY */
  .gallery-container {
    flex-direction: column;
  }
  
  /* DIESE ZEILE ENTFERNEN oder AUSKOMMENTIEREN:
  .alternate {
    flex-direction: column;
  }
  */
  
  .gallery-text,
  .gallery-images,
  .gallery-text-images_broader,
  .gallery-images_broader {
    flex: 1;
    min-width: 100%;
    padding: 20px;
  }
  
  .image-with-caption,
  .image-with-caption_broader {
    flex: 1;
    min-width: 100%;
  }
  
  .image-with-caption img,
  .image-with-caption_broader img {
    width: 100%;
    height: 300px;
    max-width: 100%;
  }
  
  .caption h3,
  .caption_broader h3 {
    font-size: 1.1rem;
  }
  
  .caption p,
  .caption_broader p {
    font-size: 0.9rem;
  }
  
  /* Hover-Effekte deaktivieren auf Mobile */
  .image-with-caption img:hover,
  .image-with-caption_broader img:hover,
  .media-item img:hover {
    transform: none;
  }
  
  /* Media Section Anpassungen */
  .media-section {
    min-width: 100%;
  }
  
  .media-item {
    min-width: 100%;
  }
  
  /* Abschnitt, Artikel, News Anpassungen */
  .abschnitt img,
  .artikel img,
  .news img {
    float: none;
    width: 100%;
    height: auto;
    margin: 10px 0;
    padding: 0;
  }
  
  h1 {
    font-size: 2.2rem;
  }
}

/* Desktop Gallery Styles */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  margin: 40px 0;
  border: 3px solid #5c0e2e;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px #0000001a;
  background: white;
}

.gallery-text {
  flex: 2;
  min-width: 300px;
  padding: 30px;
  background: white;
}

.gallery-images {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.image-with-caption {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.image-with-caption img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px #0000001a;
  transition: transform 0.3s ease;
}

.image-with-caption img:hover {
  transform: scale(1.1);
}

.caption {
  margin-top: 15px;
}

.caption h3 {
  font-size: 1.3rem;
  color: #777;
  margin-bottom: 8px;
}

.caption p {
  color: #777;
  font-size: 1rem;
  line-height: 1.4;
}

.gallery-text-images_broader {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  background: white;
}

.gallery-images_broader {
  flex: 2;
  min-width: 300px;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.image-with-caption_broader {
  flex: 2;
  min-width: 250px;
  text-align: center;
}

.image-with-caption_broader img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px #0000001a;
  transition: transform 0.3s ease;
}

.image-with-caption_broader img:hover {
  transform: scale(1.1);
}

.caption_broader {
  margin-top: 15px;
}

.caption_broader h3 {
  font-size: 1.3rem;
  color: #777;
  margin-bottom: 8px;
}

.caption_broader p {
  color: #777;
  font-size: 1rem;
  line-height: 1.4;
}

.alternate {
  flex-direction: row-reverse;
}

.media-section {
  flex: 1;
  min-width: 250px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background: #f8f9fa;
}

.media-item {
  width: 100%;
  text-align: center;
}

.media-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px #0000001a;
  transition: transform 0.3s ease;
}

.media-item img:hover {
  transform: scale(1.03);
}

.media-item video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px #0000001a;
  background: #000;
}

h2 {
  font-size: 1.8rem;
  color: #8d000085;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eaeaea;
}

h3 {
  font-size: 1.5rem;
  color: #8d000085;
  margin: 25px 0 15px;
}

p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #777;
}

ul {
  margin: 15px 0;
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
}

.abschnitt {
  background-color: #fff0f0;
  border: 1px solid;
  font-size: 13pt;
  padding: 10px;
}

.abschnitt img {
  border-radius: 50%;
  float: right;
  width: 300px;
  height: 300px;
  padding: 10px;
  margin-top: 0px;
  margin-left: 50px;
  margin-right: 70px;
}

.artikel {
  background-color: #fff7f7;
  border: 1px solid;
  padding: 16px;
  font-size: 13pt;
}

.artikel img {
  float: right;
  width: 300px;
  height: 300px;
  padding: 10px;
  margin-top: 0px;
  margin-left: 10px;
  margin-right: 10px;
}

.news {
  background-color: #f5e6eb;
  padding: 10px;
  border: 1px solid;
}

.news img {
  float: right;
  width: 300px;
  height: 300px;
  padding: 10px;
  margin-top: 0px;
  margin-left: 50px;
  margin-right: 70px;
}

.footer {
  background-color: #5c0e2e;
  padding: 10px;
}

@media (min-width: 30em) {
  body {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
  }

  header, nav, footer, div {
    grid-column: 3 / 13;
  }

  section, article {
    grid-column: 4/12;
  }
}