/* Bewertung — Google-Rezension Look */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.bewertung-page {
  margin: 0;
  min-height: 100%;
  background: #f6f6f6;
  color: #202124;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.bewertung-page input,
body.bewertung-page textarea,
body.bewertung-page button,
body.bewertung-page a {
  font-family: inherit;
}

.g-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 1.5rem 1.15rem;
}

.g-card {
  width: 100%;
  max-width: 28.5rem;
  padding: 1.15rem 1.45rem 1.55rem;
  background: #fff;
  border: 2px solid #cfc8bb;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(48, 38, 22, 0.1);
}

.g-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  margin: 0 0 0.2rem;
}

.g-card__title {
  margin: 0;
  padding: 0 2.75rem;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #202124;
  line-height: 1.3;
}

.g-close {
  position: absolute;
  right: -0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #5f6368;
  text-decoration: none;
}

.g-close svg {
  fill: currentColor;
}

.g-close:hover {
  background: #f1f3f4;
}

.g-poster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.35rem 0 1.35rem;
}

.g-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #7b1fa2;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.g-poster__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #202124;
}

.sp-bew-form {
  position: relative;
}

.bew-stars__row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.bew-stars__btn {
  border: none;
  background: transparent;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.bew-stars__btn:hover {
  background: rgba(26, 115, 232, 0.08);
}

.bew-stars__btn:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 1px;
}

.bew-stars__icon {
  position: relative;
  display: block;
  width: 1.7rem;
  height: 1.7rem;
}

.bew-stars__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bew-stars__empty path {
  fill: none;
  stroke: #80868b;
  stroke-width: 1.35;
  stroke-linejoin: round;
}

.bew-stars__full {
  opacity: 0;
}

.bew-stars__full path {
  fill: #fbbc04;
  stroke: #fbbc04;
  stroke-width: 1.35;
  stroke-linejoin: round;
}

.bew-stars__btn.is-lit .bew-stars__full {
  opacity: 1;
}

.bew-stars__btn.is-lit .bew-stars__empty {
  opacity: 0;
}

.g-cats {
  display: grid;
  gap: 0.15rem;
  margin: 0 0 0.85rem;
}

.g-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.4rem;
  font-size: 0.9375rem;
  color: #202124;
}

.g-review-field {
  margin: 0.15rem 0 1.35rem;
}

.g-review-field textarea {
  width: 100%;
  min-height: 7.25rem;
  resize: vertical;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #202124;
  background: #fff;
  box-shadow: none;
}

.g-review-field textarea::placeholder {
  color: #80868b;
}

.g-review-field textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: inset 0 0 0 1px #1a73e8;
}

.g-fields {
  display: grid;
  gap: 1.1rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e8eaed;
}

.g-outline {
  position: relative;
  display: block;
}

.g-outline input {
  width: 100%;
  height: 3.5rem;
  padding: 1.15rem 1rem 0.45rem;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  font-size: 1rem;
  color: #202124;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.g-outline span {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 0.25rem;
  font-size: 1rem;
  color: #80868b;
  background: #fff;
  pointer-events: none;
  transition: top 0.12s ease, transform 0.12s ease, font-size 0.12s ease, color 0.12s ease;
}

.g-outline input:focus {
  border-color: #1a73e8;
  box-shadow: inset 0 0 0 1px #1a73e8;
}

.g-outline input:focus + span,
.g-outline input:not(:placeholder-shown) + span {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #5f6368;
}

.g-outline input:focus + span {
  color: #1a73e8;
}

.g-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
}

.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 1.5rem;
  border-radius: 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}

.g-btn--ghost {
  background: transparent;
  color: #1a73e8;
}

.g-btn--ghost:hover {
  background: #f6fafe;
}

.g-btn--primary {
  background: #1a73e8;
  color: #fff;
}

.g-btn--primary:hover {
  background: #1765cc;
  color: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.g-btn--primary:disabled {
  background: #e8eaed;
  color: #9aa0a6;
  box-shadow: none;
  cursor: default;
}

.sp-bew-form.is-loading {
  pointer-events: none;
}

.sp-bew-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.86);
}

.sp-bew-loading[hidden] {
  display: none !important;
}

.sp-bew-loading__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.sp-bew-loading__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e8f0fe;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: sp-bew-spin 0.75s linear infinite;
}

.sp-bew-loading__text {
  margin: 0;
  font-size: 0.88rem;
  color: #5f6368;
}

@keyframes sp-bew-spin {
  to { transform: rotate(360deg); }
}

.sp-bew-form__msg {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.sp-bew-form__msg[hidden] {
  display: none !important;
}

.sp-bew-form__msg--err {
  color: #c5221f;
  background: #fce8e6;
}

.sp-bew-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sp-bew-success {
  text-align: center;
  padding: 3rem 0.5rem 1rem;
}

.sp-bew-form[hidden],
.bew-gate[hidden],
.sp-bew-success[hidden] {
  display: none !important;
}

.bew-gate {
  padding: 0.55rem 0 0.35rem;
}

.bew-gate__lead {
  margin: 0 0 1.35rem;
  text-align: center;
  color: #5f6368;
  font-size: 0.98rem;
  line-height: 1.45;
}

.bew-gate__choices {
  display: grid;
  gap: 0.85rem;
}

.bew-gate__choice {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  width: 100%;
  margin: 0;
  padding: 1.35rem 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid #e4e2de;
  background: #fff;
  color: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(32, 33, 36, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.bew-gate__choice:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(32, 33, 36, 0.08);
}

.bew-gate__choice:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.bew-gate__face {
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
}

.bew-gate__choice strong {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.bew-gate__choice--good {
  border-color: #cce8d4;
  background: #f6fbf7;
  color: #137333;
}

.bew-gate__choice--bad {
  border-color: #ece8e2;
  background: #faf8f4;
  color: #3d3428;
}

@media (max-width: 480px) {
  .bew-gate__choices {
    gap: 0.75rem;
  }
}

.sp-bew-success__icon {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: #e6f4ea;
  color: #137333;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.sp-bew-success h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 400;
}

.sp-bew-success p {
  margin: 0 auto 1.4rem;
  color: #5f6368;
}

@media (max-width: 480px) {
  .g-page {
    padding: 1rem 0.85rem;
    align-items: center;
  }

  .g-card {
    padding: 1rem 1.05rem 1.25rem;
    border-radius: 18px;
  }

  .g-card__title {
    font-size: 1.2rem;
  }
}
