
/* =========================================
   Gästebuch
   ========================================= */

body.gaeste .ce_comments {
  --gaeste-ink: #512016;
  --gaeste-gold: #a47b3c;
  --gaeste-gold-light: #d7bd83;
  --gaeste-paper: rgba(255, 248, 228, 0.78);
  --gaeste-paper-strong: rgba(255, 250, 236, 0.92);

  color: var(--gaeste-ink);
}

/* Einleitungstext */
body.gaeste #article-150 > .content-text {
  margin-bottom: 1.8rem;
}

body.gaeste #article-150 > .content-text .rte {
  max-width: 58rem;
  line-height: 1.75;
}

/* Formular als elegante Schreibfläche */
body.gaeste .ce_comments .form {
  margin: 0 0 3rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--gaeste-paper);
  border: 1px solid rgba(164, 123, 60, 0.65);
  border-radius: 3px;
  box-shadow:
    0 8px 24px rgba(55, 27, 12, 0.12),
    inset 0 0 0 4px rgba(255, 250, 236, 0.28);
  backdrop-filter: blur(3px);
}

/* Formularfelder */
body.gaeste .ce_comments .widget {
  margin: 0 0 1.15rem;
}

body.gaeste .ce_comments .widget > label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gaeste-ink);
  font-weight: 600;
  letter-spacing: 0.015em;
}

body.gaeste .ce_comments .mandatory > label .mandatory {
  color: #8c3927;
}

/* Eingaben und Kommentarfeld */
body.gaeste .ce_comments input.text,
body.gaeste .ce_comments input[type="email"],
body.gaeste .ce_comments textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.9rem;
  color: #3f2119;
  background: rgba(255, 253, 246, 0.94);
  border: 1px solid #b99a61;
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(65, 39, 17, 0.07);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

body.gaeste .ce_comments input.text:focus,
body.gaeste .ce_comments input[type="email"]:focus,
body.gaeste .ce_comments textarea:focus {
  outline: none;
  background: #fffdf7;
  border-color: #805522;
  box-shadow: 0 0 0 3px rgba(164, 123, 60, 0.2);
}

body.gaeste .ce_comments textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.65;
}

/* Benachrichtigungsoption */
body.gaeste .ce_comments .widget-checkbox {
  margin-top: 1.5rem;
}

body.gaeste .ce_comments .checkbox_container {
  margin: 0;
  padding: 1rem 1.1rem;
  background: rgba(255, 250, 236, 0.58);
  border: 1px solid rgba(164, 123, 60, 0.5);
}

body.gaeste .ce_comments .checkbox_container span {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

body.gaeste .ce_comments .checkbox_container input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 0.35em;
  accent-color: #805522;
}

body.gaeste .ce_comments .checkbox_container label {
  line-height: 1.6;
}

/* Absende-Button */
body.gaeste .ce_comments .widget-submit {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

body.gaeste .ce_comments button.submit {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  color: #fff8e8;
  background: linear-gradient(135deg, #81572d, #5a2a1c);
  border: 1px solid #d1b578;
  border-radius: 3px;
  box-shadow: 0 3px 9px rgba(55, 27, 12, 0.2);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

body.gaeste .ce_comments button.submit:hover {
  background: linear-gradient(135deg, #966d3b, #6b3421);
  box-shadow: 0 5px 13px rgba(55, 27, 12, 0.25);
  transform: translateY(-1px);
}

body.gaeste .ce_comments button.submit:focus-visible {
  outline: 2px solid #805522;
  outline-offset: 3px;
}

/* Einzelne Kommentare */
body.gaeste .ce_comments .comment_default {
  margin: 0 0 2rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid rgba(164, 123, 60, 0.55);
}

body.gaeste .ce_comments .comment_default:last-of-type {
  border-bottom: 0;
}

/* Name und Datum */
body.gaeste .ce_comments .comment_default > .info {
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.9rem;
  color: #54281b;
  background: linear-gradient(
    90deg,
    rgba(255, 247, 222, 0.88),
    rgba(255, 247, 222, 0.38)
  );
  border-left: 3px solid var(--gaeste-gold);
  font-weight: 600;
  line-height: 1.5;
}

body.gaeste .ce_comments .comment_default .date {
  color: #785c38;
  font-size: 0.92em;
  font-weight: 400;
}

/* Kommentartext */
body.gaeste .ce_comments .comment {
  padding: 0 0.9rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

body.gaeste .ce_comments .comment p {
  margin: 0 0 0.9rem;
}

body.gaeste .ce_comments .comment p:last-child {
  margin-bottom: 0;
}

/* Pagination */
body.gaeste .ce_comments .pagination {
  margin: 2rem 0;
  text-align: center;
}

body.gaeste .ce_comments .pagination a,
body.gaeste .ce_comments .pagination span {
  display: inline-block;
  margin: 0.2rem;
  padding: 0.45rem 0.75rem;
  color: var(--gaeste-ink);
  border: 1px solid rgba(164, 123, 60, 0.6);
  border-radius: 2px;
  text-decoration: none;
}

body.gaeste .ce_comments .pagination a:hover {
  background: rgba(255, 248, 228, 0.7);
}

/* Mobil */
@media (max-width: 600px) {
  body.gaeste .ce_comments .form {
    padding: 1rem;
  }

  body.gaeste .ce_comments .checkbox_container {
    padding: 0.8rem;
  }

  body.gaeste .ce_comments .comment {
    padding: 0 0.25rem;
  }

  body.gaeste .ce_comments .comment_default > .info {
    padding: 0.6rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.gaeste .ce_comments input.text,
  body.gaeste .ce_comments input[type="email"],
  body.gaeste .ce_comments textarea,
  body.gaeste .ce_comments button.submit {
    transition: none;
  }
}
