/* Nur das Gästebuch: vorhandene Theme-Typografie und Farben bleiben maßgeblich. */
.fmgb { margin: 0; }
.fmgb [hidden] { display: none !important; }
#kontakt .fmgb .fmgb-heading { margin: 0; padding: 0; font: inherit; letter-spacing: normal; }
.fmgb .fmgb-toggle { box-sizing: border-box; display: grid; grid-template-columns: 1.25fr 1fr 1fr; align-items: baseline; gap: 24px; width: 100%; padding: 30px 0; border-top: 1px solid var(--line, #888); }
.fmgb-title { font-size: clamp(28px, 3.1vw, 48px); line-height: 1.1; letter-spacing: -.04em; font-weight: var(--weight-heading, 700); }
.fmgb-invitation { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-weight: var(--weight-text, 400); line-height: 1.5; }
.fmgb button { background: none; border: 0; color: inherit; font: inherit; font-size: var(--font-text, 20px); text-align: left; cursor: pointer; }
.fmgb button:hover, .fmgb button:focus-visible, .fmgb a:hover { color: var(--accent, #c9b37e); }
.fmgb button:focus-visible { outline: 2px solid var(--accent, #c9b37e); outline-offset: 5px; }
.fmgb button:disabled { opacity: .5; cursor: wait; }
.fmgb-icon { font-size: 1.4em; line-height: 1; }
.fmgb-panel { overflow: hidden; }
.fmgb-inner { padding: 8px 0 40px; }
#kontakt .fmgb p { font-size: var(--font-text, 20px); line-height: 1.5; margin: 0 0 24px; }
.fmgb-form { position: relative; display: grid; gap: 20px; width: 100%; }
.fmgb-form label { font-size: clamp(16px, 1.3vw, 20px); }
.fmgb input, .fmgb textarea { box-sizing: border-box; width: 100%; border: 0; box-shadow: none; appearance: none; border-radius: 0; background: transparent; color: inherit; padding: 12px 0; font: inherit; font-size: var(--font-text, 20px); }
.fmgb textarea { resize: vertical; min-height: 140px; }
#kontakt .fmgb .fmgb-note { font-size: 15px; line-height: 1.6; color: var(--muted, #777); margin: -8px 0 28px; }
.fmgb-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#kontakt .fmgb .fmgb-status { margin: 24px 0; }
.fmgb-entry { border-top: 1px solid var(--line, #888); padding: 24px 0; }
.fmgb-entry header { display: flex; gap: 20px; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.fmgb-entry strong { overflow-wrap: anywhere; }
#kontakt .fmgb-entry p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.fmgb-submit span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.fmgb-submit:hover span,
.fmgb-submit:focus-visible span {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .fmgb-submit span {
    transition: none;
    transform: none;
  }
}
@media (max-width: 1100px) {
 .fmgb .fmgb-toggle { grid-template-columns: 1fr 1fr; gap: 18px 24px; }
 .fmgb-title, .fmgb-invitation { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .fmgb .fmgb-toggle { padding: 24px 0; } }

.fmgb input::placeholder, .fmgb textarea::placeholder { color: var(--muted, #777); opacity: 1; }
.fmgb input:focus, .fmgb textarea:focus { outline: none; box-shadow: inset 0 -2px 0 var(--accent, #c9b37e); }
/* Beschriftungen bleiben für Screenreader vorhanden. */
.fmgb-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.fmgb .fmgb-submit {
  justify-self: end;
  padding-right: 10px;
}
