/* ===========================
   GÄSTEBUCH
   =========================== */

.guestbook-page {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.guestbook-hero {
  text-align: center;
  margin-bottom: 28px;
}

.guestbook-hero h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 300;
  color: #fff;
}

.guestbook-subline {
  color: #a8a8a8;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

.guestbook-card {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  margin-bottom: 28px;
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #222;
  border: 1px solid #333;
  color: #eee;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: none;
  background: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.guestbook-form textarea {
  min-height: 140px;
  resize: vertical;
}

.guestbook-form button {
  width: 100%;
  border-radius: 10px;
  font-size: 1rem;
}

.guestbook-hidden {
  display: none;
}

.guestbook-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #d8ffd8;
  border: 1px solid rgba(141, 245, 141, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 9999;
}

.guestbook-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.guestbook-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ef59e;
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.guestbook-entry {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.guestbook-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.guestbook-entry-name {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.guestbook-entry-date {
  font-size: 0.85rem;
  color: #9b9b9b;
}

.guestbook-entry-text {
  color: #d2d2d2;
  line-height: 1.7;
  white-space: normal;
  word-break: break-word;
}

.guestbook-empty {
  text-align: center;
  color: #9a9a9a;
  padding: 18px 10px;
}

.toTop {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 42px;
  height: 42px;
  background: #232323;
  color: #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  transition:
    background 0.2s ease,
    transform 0.1s ease;
  z-index: 9999;
}

.toTop:hover {
  background: #333;
  transform: scale(1.06);
}

@media (max-width: 700px) {
  .guestbook-page {
    margin: 28px auto;
    padding: 0 14px;
  }

  .guestbook-hero h1 {
    font-size: 1.6rem;
  }

  .guestbook-subline {
    font-size: 0.96rem;
  }

  .guestbook-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .guestbook-entry {
    padding: 16px 14px;
  }

  .guestbook-entry-head {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}
.guestbook-page {
  padding-bottom: 40px;
}
