/*
 * Der Gastbereich (F5, erste Fassung). Eigene, kleine Stildatei statt
 * ghb-search.css: der Gastbereich hat weder Suchfilter noch Ergebniskarten,
 * eine geteilte Datei wuerde nur ungenutzte Regeln mitschleppen.
 */
.ghb-portal {
  max-width: 640px;
  font: 16px/1.5 system-ui, sans-serif;
  color: #172322;
}

.ghb-portal h2 {
  font-size: 1.3em;
  margin: 0 0 8px;
}

.ghb-portal-note {
  color: #4e605e;
  margin: 0 0 18px;
}

.ghb-portal-notice {
  background: #eef6f4;
  border: 1px solid #bfe0da;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0;
}

.ghb-portal-login form,
.ghb-portal-panel form {
  display: grid;
  gap: 14px;
  max-width: 420px;
}

.ghb-portal-login label,
.ghb-portal-panel label {
  display: grid;
  gap: 4px;
  font-weight: 600;
}

.ghb-portal-login input,
.ghb-portal-panel input,
.ghb-portal-panel textarea {
  font: inherit;
  padding: 9px 12px;
  border: 1px solid #c7cfce;
  border-radius: 8px;
}

.ghb-portal-panel textarea {
  min-height: 70px;
  resize: vertical;
  font-weight: 400;
}

.ghb-portal-login button,
.ghb-portal-panel button {
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: #1a6b5c;
  color: #fff;
  cursor: pointer;
  justify-self: start;
}

.ghb-portal-login button:disabled,
.ghb-portal-panel button:disabled {
  opacity: 0.6;
  cursor: default;
}

.ghb-portal-panel button.ghb-portal-danger {
  background: #b3261e;
}

.ghb-portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid #d9dfde;
  margin-bottom: 18px;
  padding-bottom: 10px;
}

.ghb-portal-tab {
  font: inherit;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid #c7cfce;
  border-radius: 999px;
  background: #fff;
  color: #172322;
  cursor: pointer;
}

.ghb-portal-tab.is-active {
  background: #1a6b5c;
  border-color: #1a6b5c;
  color: #fff;
}

.ghb-portal-logout {
  font: inherit;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid #c7cfce;
  border-radius: 999px;
  background: #fff;
  color: #4e605e;
  cursor: pointer;
}

.ghb-portal-summary {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) 1.2fr;
  gap: 10px 16px;
  margin: 0 0 18px;
}

.ghb-portal-summary dt {
  font-weight: 600;
  color: #4e605e;
}

.ghb-portal-summary dd {
  margin: 0;
}

.ghb-portal-rooms {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ghb-portal-rooms li {
  background: #fff;
  border: 1px solid #d9dfde;
  border-radius: 10px;
  padding: 10px 14px;
}

.ghb-portal-documents {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.ghb-portal-documents li {
  background: #fff;
  border: 1px solid #d9dfde;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 4px;
}

.ghb-portal-documents li span {
  display: block;
}

.ghb-portal-documents li span:last-of-type {
  color: #4e605e;
  font-size: 0.9em;
}

.ghb-portal-documents li a {
  justify-self: start;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #1a6b5c;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.ghb-portal-fee-note {
  margin: 0 0 12px;
}

.ghb-portal-companion {
  border: 1px solid #d9dfde;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
  display: grid;
  gap: 12px;
}

.ghb-portal-companion legend {
  font-weight: 600;
  padding: 0 4px;
}

.ghb-portal-checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400 !important;
}

.ghb-portal-checkbox-label input {
  width: auto;
  margin-top: 4px;
}

.ghb-portal-messages {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.ghb-portal-message {
  background: #fff;
  border: 1px solid #d9dfde;
  border-left: 4px solid #d9dfde;
  border-radius: 10px;
  padding: 12px 14px;
}

.ghb-portal-message.is-own {
  border-left-color: #1a6b5c;
  background: #f3faf8;
}

.ghb-portal-message-meta {
  margin: 0 0 6px;
  font-size: 0.85em;
  color: #4e605e;
}

.ghb-portal-message-body {
  overflow-wrap: break-word;
}

.ghb-portal-message-body p:first-child {
  margin-top: 0;
}

.ghb-portal-message-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .ghb-portal-summary {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .ghb-portal-summary dd {
    margin: 0 0 12px;
  }
}
