/* Allgemeines Styling */
body {
  margin: 0;
  font-family: 'Spectral', serif; /* Alle Texte standardmäßig Spectral */
  background-color: #fdf9f2;
  display: flex;
  color: #3e2e1f;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background-color: #f5f0e1;
  color: #3e2e1f;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(0);
  transition-property: transform;
  transition-duration: 0.3s;
  transition-timing-function: ease;
  z-index: 1000;
}

.sidebar h2 {
  margin-top: 0;
}

.sidebar ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  width: 100%;
}

.sidebar ul li {
  margin-top: 10px;
  margin-bottom: 10px;
}

.sidebar ul li a {
  color: #5a4632;
  text-decoration: none;
  font-weight: bold;
  transition-property: color, text-decoration;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

.sidebar ul li a:hover {
  color: #8f6239;
  text-decoration: underline;
}

/* Kerzensymbol */
.candle-symbol {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding-top: 16px;
}

.candle-symbol img {
  width: 180px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.7;
  transition-property: opacity;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

.candle-symbol img:hover {
  opacity: 1;
}

/* Inhalt */
.content {
  margin-left: 230px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  flex-grow: 1;
  font-size: 16px;
  line-height: 1.6;
}

/* Links im Content */
.content a {
  color: #b68c5b;
  text-decoration: none;
  transition-property: color, text-decoration;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

.content a:hover {
  color: #8f6239;
  text-decoration: underline;
}

/* Weiße Inhaltsblöcke */
.section,
footer {
  background-color: #ffffff;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.gallery img,
.gallery video {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Über mich */
.about-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.about-text {
  flex-grow: 3;
}

.about-image {
  flex-grow: 1;
}

.about-image img {
  width: 100%;
  max-width: 150px;
  border-radius: 10px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}

/* Mobile Profilbild im Text zuerst ausblenden */
.mobile-profile-image {
  display: none;
  margin-left: 10px;
}

.mobile-profile-image img {
  width: 80px;
  height: auto;
  border-radius: 10px;
  vertical-align: middle;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
}

/* Sicherheitssymbole */
#info ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

#info ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}

#info ul li img {
  width: 88px;
  height: 80px;
  flex-shrink: 0;
}

/* Symbole doppelt so breit */
#info ul li.double-width img {
  width: 160px;
  height: auto;
}

/* Text nach Symbol: bündig starten */
#info ul li span {
  flex-grow: 1;
}

/* Extra-Warnung */
.extra-warning {
  border-style: solid;
  border-width: 2px;
  border-color: #c94d4d;
  background-color: #fce5e5;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

/* Burger Menü Button (mobil) */
.menu-toggle {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  background-color: #e9dfcd;
  color: #5a4632;
  border-width: 0px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1001;
  transition-property: background-color, color;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Responsive: Mobile Optimierungen */
@media screen and (max-width: 768px) {
  /* Sidebar ausblenden */
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }

  .content {
    margin-left: 0px;
  }

  /* Über mich Bild nur mobil neben Text */
  .about-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-text {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .about-image {
    display: none;
  }

  .mobile-profile-image {
    display: inline-block;
  }

  .mobile-profile-image img {
    width: 80px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
  }
}
