/* ============================================================
   Host-Profilseite
   Dezentes, professionelles Layout im Sprachklub-Stil
   ============================================================ */

.host-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.host-back {
  align-self: flex-start;
  font-size: var(--fs-300);
  color: var(--brand-navy);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.host-back:hover {
  background: var(--brand-yellow-soft);
  border-color: rgba(248, 210, 84, 0.45);
  text-decoration: none;
}

.host-error h2 {
  margin-top: 0;
  color: var(--brand-navy);
}

/* ───── Header-Card ───── */
.host-card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffef8 0%, #fffdf2 100%);
  box-shadow: var(--shadow-2);
}

.host-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-5);
}

.host-card__avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-yellow-strong), var(--brand-yellow));
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(248, 210, 84, 0.35);
  flex-shrink: 0;
}

.host-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-card__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.04em;
}

.host-card__title h1 {
  margin: 0 0 6px 0;
  font-size: var(--fs-700);
  color: var(--brand-navy);
}

.host-card__title .muted {
  margin: 0;
  font-size: var(--fs-300);
}

.host-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-yellow-soft);
  border: 1px solid rgba(248, 210, 84, 0.45);
  font-size: var(--fs-300);
  color: var(--brand-navy);
  font-weight: 600;
}

.host-stars {
  letter-spacing: 1px;
  color: var(--brand-yellow-strong);
  font-size: 16px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.host-card__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.host-card__cta .btn {
  white-space: nowrap;
}

.host-bio {
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.host-bio h2 {
  margin: 0 0 8px 0;
  font-size: var(--fs-500);
  color: var(--brand-navy);
}

.host-bio p {
  margin: 0;
  white-space: pre-wrap;
}

/* ───── Sections ───── */
.host-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.host-section h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: var(--fs-600);
}

.host-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ───── Clubs grid ───── */
.host-clubs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.host-club-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.host-club-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: rgba(248, 210, 84, 0.5);
}

.host-club-card__title {
  margin: 0;
  font-size: var(--fs-500);
  color: var(--brand-navy);
}

.host-club-card .meta {
  font-size: var(--fs-300);
  color: var(--muted);
}

.host-club-card .actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* ───── Reviews ───── */
.host-reviews {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.host-review {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.host-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.host-review__author {
  font-weight: 700;
  color: var(--brand-navy);
}

.host-review__verified {
  font-size: var(--fs-200);
  color: var(--success);
  background: #22c55e1a;
  border: 1px solid #22c55e40;
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 8px;
}

.host-review__stars {
  color: var(--brand-yellow-strong);
  letter-spacing: 1px;
}

.host-review__meta {
  font-size: var(--fs-300);
  color: var(--muted);
}

.host-review__body {
  margin: 4px 0 0 0;
  white-space: pre-wrap;
}

/* ───── Star rating input ───── */
.rating-input {
  display: inline-flex;
  gap: 4px;
}

.rating-input .star {
  background: transparent;
  border: 0;
  font-size: 28px;
  color: rgba(19, 42, 55, 0.18);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.1s ease, transform 0.1s ease;
}

.rating-input .star:hover,
.rating-input .star.is-hover {
  transform: scale(1.05);
  color: var(--brand-yellow-strong);
}

.rating-input .star.is-active {
  color: var(--brand-yellow-strong);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.field-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

/* ───── Dialogs ───── */
.host-dialog {
  width: min(640px, 96vw);
  max-height: 90vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: var(--space-5);
  background: var(--surface);
  box-shadow: var(--shadow-3);
}

.host-dialog::backdrop {
  background: rgba(19, 42, 55, 0.4);
  backdrop-filter: blur(2px);
}

.host-dialog .dialog-header h2 {
  margin: 0 0 4px 0;
  color: var(--brand-navy);
  font-size: var(--fs-600);
}

.host-dialog .dialog-header p {
  margin: 0;
}

.contact-block {
  border: 1px dashed rgba(19, 42, 55, 0.18);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin: 0;
  background: var(--brand-yellow-soft-2);
}

.contact-block legend {
  font-weight: 600;
  color: var(--brand-navy);
  padding: 0 6px;
}

.contact-field input {
  background: var(--surface);
}

.hp-field {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ───── Mobile ───── */
@media (max-width: 720px) {
  .host-card__head {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .host-card__avatar { margin: 0 auto; }
  .host-card__cta { flex-direction: row; justify-content: center; }
}
