/* Gästebuch — single-page guestbook, vertical entry list. */

.gb-body {
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--serif-de);
}

/* ---------- HERO ---------- */
.gb-hero {
  background:
    linear-gradient(180deg, #f6efe2 0%, #efe3cd 60%, #e7d6b6 100%);
  padding: clamp(5rem, 10vw, 8rem) var(--gutter) clamp(3.5rem, 6vw, 5rem);
  text-align: center;
  border-bottom: 1px solid rgba(122, 111, 98, .18);
}
.gb-hero-inner { max-width: 44rem; margin: 0 auto; }
.gb-hero-eyebrow {
  font-family: var(--sans-ui);
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--c-muted);
  margin: 0 0 1.6rem;
}
.gb-hero-title {
  margin: 0;
  font-family: var(--serif-de);
  font-weight: 300;
  font-size: clamp(2.6rem, 1.8rem + 4vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--c-ink);
  display: flex; flex-wrap: wrap; gap: .5rem .8rem;
  align-items: baseline;
  justify-content: center;
}
.gb-hero-ar {
  font-family: var(--serif-ar);
  font-weight: 700;
  font-size: clamp(2.2rem, 1.6rem + 3.4vw, 4rem);
  color: #8B5A2B;
  line-height: 1.5;
}
.gb-hero-sep { color: #8B5A2B; opacity: .55; }
.gb-hero-sub {
  font-family: var(--serif-de);
  font-style: italic;
  font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem);
  color: var(--c-ink-2);
  line-height: 1.55;
  max-width: 36rem;
  margin: 1.2rem auto 0;
}
.gb-hero-sub--ar {
  font-family: var(--serif-ar);
  font-style: normal;
  font-size: clamp(1.18rem, 1.08rem + .35vw, 1.35rem);
  line-height: 2.1;
  letter-spacing: .005em;
  margin-top: .8rem;
}
.gb-hero-meta {
  margin: 1.5rem 0 0;
  font-family: var(--sans-ui);
  font-size: .85rem;
  color: var(--c-muted);
  letter-spacing: .04em;
}

/* ---------- INTRO + CTA ---------- */
.gb-intro {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  background: var(--c-cream);
  text-align: center;
}
.gb-intro-inner { max-width: 38rem; margin: 0 auto; }
.gb-intro-text {
  font-family: var(--serif-de);
  font-size: clamp(1.05rem, .98rem + .25vw, 1.18rem);
  line-height: 1.7;
  color: var(--c-ink);
  margin: 0 0 1.2rem;
}
.gb-intro-text--ar {
  font-family: var(--serif-ar);
  font-size: clamp(1.18rem, 1.05rem + .35vw, 1.32rem);
  line-height: 2.15;
  letter-spacing: .005em;
  text-align: right;
  direction: rtl;
}
.gb-cta-row {
  margin: 2rem 0 .8rem;
  text-align: center;
}
.gb-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans-ui);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background: #8B5A2B;
  border: 1px solid #8B5A2B;
  border-radius: 999px;
  padding: .8rem 1.8rem;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.gb-cta:hover {
  background: #6f4621;
  border-color: #6f4621;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(60,40,15,.35);
}
.gb-cta-note {
  font-family: var(--sans-ui);
  font-size: .78rem;
  color: var(--c-muted);
  letter-spacing: .04em;
  margin: .4rem 0 0;
}

/* ---------- INLINE FORM ---------- */
.gb-form {
  margin: 2.4rem auto 0;
  max-width: 38rem;
  text-align: left;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: #fbf6ec;
  border: 1px solid rgba(139, 90, 43, .22);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
              0 14px 30px -18px rgba(60, 40, 15, .18);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.gb-field-row {
  display: grid;
  grid-template-columns: 1fr 12rem;
  gap: 1rem;
}
@media (max-width: 600px) {
  .gb-field-row { grid-template-columns: 1fr; }
}
.gb-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  position: relative;
}
.gb-label {
  font-family: var(--sans-ui);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 600;
}
.gb-label [lang="ar"] {
  font-family: var(--serif-ar);
  font-size: .95rem;
  letter-spacing: 0;
  color: #8B5A2B;
  font-weight: 700;
  text-transform: none;
}
.gb-form input[type="text"],
.gb-form select,
.gb-form textarea {
  width: 100%;
  font-family: var(--serif-de);
  font-size: 1.02rem;
  color: var(--c-ink);
  background: #fffdf6;
  border: 1px solid rgba(139, 90, 43, .28);
  border-radius: 6px;
  padding: .7rem .9rem;
  line-height: 1.5;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.gb-form textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.7;
}
.gb-form input[type="text"]:focus,
.gb-form select:focus,
.gb-form textarea:focus {
  outline: none;
  border-color: #8B5A2B;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(139, 90, 43, .15);
}
.gb-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238B5A2B' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.2rem;
}
.gb-counter {
  position: absolute;
  bottom: .5rem;
  right: .9rem;
  font-family: var(--sans-ui);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--c-muted);
  background: rgba(255, 253, 246, .9);
  padding: 0 .35rem;
  border-radius: 3px;
  pointer-events: none;
}
.gb-counter.is-near-limit { color: #b03a2e; }

/* honeypot — hidden from real users */
.gb-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.gb-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  align-items: center;
  margin-top: .4rem;
}
.gb-form-actions .gb-cta {
  cursor: pointer;
  border: 1px solid #8B5A2B;
  font: inherit;
  font-family: var(--sans-ui);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .85rem;
  padding: .8rem 1.6rem;
}
.gb-form-actions .gb-cta:disabled {
  opacity: .55;
  cursor: progress;
  transform: none;
  box-shadow: none;
}
.gb-form-actions .gb-cta-note {
  flex: 1 1 14rem;
  text-align: left;
  margin: 0;
  line-height: 1.45;
}

.gb-form-status {
  font-family: var(--sans-ui);
  font-size: .85rem;
  line-height: 1.5;
  margin-top: .2rem;
  padding: .8rem 1rem;
  border-radius: 6px;
  display: none;
}
.gb-form-status.is-pending,
.gb-form-status.is-success,
.gb-form-status.is-error { display: block; }
.gb-form-status.is-pending {
  background: rgba(139, 90, 43, .08);
  color: #6f4621;
  border: 1px solid rgba(139, 90, 43, .22);
}
.gb-form-status.is-success {
  background: rgba(76, 138, 76, .1);
  color: #2e6b3f;
  border: 1px solid rgba(76, 138, 76, .35);
}
.gb-form-status.is-error {
  background: rgba(176, 58, 46, .08);
  color: #9b2f24;
  border: 1px solid rgba(176, 58, 46, .35);
}

/* "in Prüfung" badge on locally-pending entries */
.gb-entry.is-pending {
  border-style: dashed;
  background: linear-gradient(180deg, #fbf6ec 0%, #f5ecdb 100%);
}
.gb-entry-pending {
  font-family: var(--sans-ui);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8B5A2B;
  background: rgba(139, 90, 43, .12);
  padding: .25rem .55rem;
  border-radius: 999px;
  font-weight: 700;
}

/* ---------- ENTRIES ---------- */
.gb-entries {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(5rem, 10vw, 7rem);
  background: linear-gradient(180deg, var(--c-cream) 0%, #f5ecdb 100%);
  border-top: 1px solid rgba(122, 111, 98, .18);
}
.gb-entries-inner { max-width: 44rem; margin: 0 auto; }
.gb-section-eyebrow {
  font-family: var(--sans-ui);
  font-size: .76rem;
  letter-spacing: .3em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin: 0 0 .8rem;
  font-weight: 600;
  text-align: center;
}
.gb-section-h {
  font-family: var(--serif-de);
  font-weight: 300;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
  margin: 0 0 2.5rem;
  text-align: center;
  display: flex; gap: .6rem; justify-content: center; align-items: baseline;
  flex-wrap: wrap;
}
.gb-section-h [lang="ar"] {
  font-family: var(--serif-ar);
  font-weight: 700;
  color: #8B5A2B;
}
.gb-section-sep { color: #8B5A2B; opacity: .5; }

.gb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.gb-list .gb-empty {
  font-family: var(--serif-de);
  font-style: italic;
  color: var(--c-muted);
  text-align: center;
  font-size: 1.05rem;
}

.gb-entry {
  position: relative;
  padding: 1.6rem clamp(1.2rem, 3vw, 2rem);
  background: #fbf6ec;
  border: 1px solid rgba(139, 90, 43, .22);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 24px -10px rgba(60,40,15,.15);
}
.gb-entry-quote {
  position: absolute;
  top: -.2em;
  left: .8rem;
  font-family: var(--serif-de);
  font-size: 4.5rem;
  line-height: 1;
  color: #8B5A2B;
  opacity: .25;
  font-style: italic;
}
.gb-entry-text {
  font-family: var(--serif-de);
  font-size: clamp(1.08rem, 1rem + .25vw, 1.22rem);
  line-height: 1.65;
  color: var(--c-ink);
  margin: 0 0 1rem;
  white-space: pre-wrap;
  position: relative;
  padding-left: 1.4rem;
}
.gb-entry[data-lang="ar"] .gb-entry-text {
  font-family: var(--serif-ar);
  font-size: clamp(1.2rem, 1.08rem + .3vw, 1.35rem);
  line-height: 2.1;
  letter-spacing: .005em;
  text-align: right;
  direction: rtl;
  padding-left: 0;
  padding-right: 1.4rem;
}
.gb-entry[data-lang="ar"] .gb-entry-quote {
  left: auto;
  right: .8rem;
}

.gb-entry-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--sans-ui);
  font-size: .78rem;
  color: var(--c-muted);
  letter-spacing: .04em;
  border-top: 1px dashed rgba(139, 90, 43, .22);
  padding-top: .7rem;
}
.gb-entry-name {
  font-family: var(--serif-de);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--c-ink);
  letter-spacing: 0;
  font-weight: 500;
}
.gb-entry-date {
  white-space: nowrap;
}

/* ---------- Library entry-point banner ---------- */
.gb-banner {
  background: linear-gradient(180deg, #f5ecdb 0%, #e8d8b8 100%);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  border-top: 1px solid rgba(122, 111, 98, .18);
  text-align: center;
}
.gb-banner-inner { max-width: 36rem; margin: 0 auto; }
.gb-banner-eyebrow {
  font-family: var(--sans-ui);
  font-size: .74rem;
  letter-spacing: .3em;
  color: #8B5A2B;
  text-transform: uppercase;
  margin: 0 0 .8rem;
  font-weight: 600;
}
.gb-banner-h {
  font-family: var(--serif-de);
  font-weight: 300;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  margin: 0 0 .6rem;
  font-style: italic;
}
.gb-banner-sub {
  font-family: var(--serif-de);
  font-size: 1.02rem;
  color: var(--c-ink-2);
  margin: 0 0 1.4rem;
  line-height: 1.55;
}
.gb-banner-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans-ui);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background: #8B5A2B;
  border-radius: 999px;
  padding: .65rem 1.5rem;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.gb-banner-link:hover {
  background: #6f4621;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(60,40,15,.35);
}
