
.content {
  background-color: #ffffff;
  padding: 0;
  border-radius: 6px;
  margin-bottom: 24px;
  border: 1px solid #e8e8e4;
  overflow: hidden;
}

.content h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #222;
  margin-bottom: 18px;
}

.content p {
  margin: 0;
}

.content + .content {
  margin-top: 20px;
}

.content-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 24px 24px;
}

.post-image-wrap {
  width: 100%;
  background: transparent;
}

.post-image {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.post-date {
  margin: 16px 0 8px;
  max-width: 62ch;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: #8a8a8a;
  text-transform: uppercase;
}

.post-text {
  margin-top: 10px;
  padding-top: 10px;
  max-width: 62ch;
  border-top: 1px solid #efefec;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.form-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #e3e3de;
  background-color: #fbfbf9;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}

.form-message-success {
  border-color: #dfe7db;
  background-color: #f8fbf6;
  color: #4f5f4a;
}

.form-message-error {
  border-color: #eadfda;
  background-color: #fcf8f6;
  color: #7a4e45;
}

.upload-form {
  width: 100%;
}

.upload-form p {
  margin-bottom: 20px;
}

.upload-form label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

.upload-form small {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: #8a8a8a;
}

.upload-form input[type="text"],
.upload-form input[type="password"],
.upload-form input[type="file"],
.upload-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d3;
  background-color: #fff;
  color: #222;
  font-size: 14px;
}

.upload-form textarea {
  min-height: 120px;
  resize: vertical;
}

.upload-form input[type="text"]:focus,
.upload-form input[type="password"]:focus,
.upload-form input[type="file"]:focus,
.upload-form textarea:focus {
  outline: none;
  border-color: #c4c4bd;
  background-color: #fcfcfb;
}

.edit-btn,
.delete-btn,
.upload-form button,
.load-more-btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #d4d4d4;
  background-color: #ffffff;
  color: #222;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.edit-btn:hover,
.delete-btn:hover,
.upload-form button:hover,
.load-more-btn:hover {
  background-color: #f7f7f4;
}

.upload-form .edit-btn {
  margin-left: 10px;
}

.load-more-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 10px auto 30px;
}

.load-more-btn {
  margin: 0 auto;
}

.load-more-btn:disabled {
  opacity: 1;
  color: #8a8a8a;
  border-color: #e1e1dc;
  background-color: #fbfbf9;
  cursor: default;
}

.post-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  max-width: 62ch;
  border-top: 1px solid #efefec;
}

.delete-form {
  margin-top: 0;
}

.edit-preview {
  margin-bottom: 18px;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox-image {
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  opacity: 0.9;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Tablet */
@media (max-width: 992px) {
  .content {
    margin-bottom: 25px;
  }

  .content h3 {
    font-size: 24px;
  }

  .content-inner {
    max-width: 720px;
    padding: 18px 22px 22px;
  }
}

/* Smartphone */
@media (max-width: 768px) {
  .content {
    padding: 0;
    margin-bottom: 20px;
  }

  .content h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .content + .content {
    margin-top: 16px;
  }

  .content-inner {
    max-width: 100%;
    padding: 16px 18px 18px;
  }

  .post-image {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
  }

  .upload-form input[type="text"],
  .upload-form input[type="password"],
  .upload-form input[type="file"],
  .upload-form textarea {
    font-size: 16px;
  }

  .form-message {
    font-size: 13px;
    padding: 10px 12px;
  }

  .post-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .edit-btn,
  .delete-btn,
  .upload-form button,
  .load-more-btn {
    width: 100%;
    text-align: center;
  }

  .delete-form {
    width: 100%;
    margin-top: 0;
  }

  .upload-form .edit-btn {
    margin-left: 0;
    margin-top: 10px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 30px;
  }
}

/* Kleine Smartphones */
@media (max-width: 480px) {
  .content {
    padding: 0;
  }

  .content h3 {
    font-size: 20px;
  }

  .content-inner {
    padding: 14px 16px 16px;
  }
}
