/* In-Dish · Review page (shared tokens live in base.css) */

:root { --maxw: 30rem; --radius: 16px; }

/* ---------- Layout (mobile first) ---------- */

.stage {
  position: relative;
  min-height: 100dvh;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(1.5rem, 6vw, 2.5rem);
  padding-top: max(2rem, env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand a { display: block; }

.brand__logo {
  width: clamp(9rem, 42vw, 12rem);
  height: auto;
  display: block;
}

/* ---------- Sprachumschalter ---------- */

.lang {
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 5;
  min-width: 2.5rem;
  padding: 0.4rem 0.7rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cream-2);
  background: var(--green-900);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang:hover { background: var(--green-700); }

.home-btn {
  position: absolute;
  top: max(0.5rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  z-index: 5;
  display: grid;
  place-items: center start;
  width: 2.75rem;
  height: 2.75rem;
  padding-left: 0.5rem;
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  color: var(--gold);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Views ---------- */

.view {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
}

.view.is-active {
  display: flex;
  animation: rise 0.55s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.headline {
  margin: 0.35rem 0 0.5rem;
  max-width: 100%;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 9vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--cream-2);
}

.headline--sm { font-size: clamp(1.65rem, 7.5vw, 2.2rem); }

.lede {
  margin: 0;
  max-width: 32ch;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--beige);
}

/* ---------- Sterne ---------- */

.stars {
  display: flex;
  gap: clamp(0.35rem, 2.5vw, 0.6rem);
  margin: 1.4rem 0 0.4rem;
}

.star {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  border: 0;
  background: none;
  padding: 0.15rem;
  cursor: pointer;
  font-size: clamp(2.4rem, 13vw, 3.2rem);
  line-height: 1;
  color: rgba(252, 247, 235, 0.22);
  transition: transform 0.18s var(--ease), color 0.18s ease;
  touch-action: manipulation;
}

.star:hover,
.star.is-lit {
  color: var(--gold);
  transform: translateY(-2px) scale(1.06);
}

.star.is-picked {
  animation: pop 0.4s var(--ease);
}

@keyframes pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.35) rotate(-6deg); }
  100% { transform: scale(1); }
}

.star:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 0;
}

.stars__hint {
  min-height: 1.4em;
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  font-weight: 400;
}

/* ---------- Formular ---------- */

#feedback-form {
  width: 100%;
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 8.5rem;
  padding: 1rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: var(--cream-2);
  background: rgba(252, 247, 235, 0.06);
  border: 1px solid rgba(188, 142, 86, 0.35);
  border-radius: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

textarea::placeholder { color: rgba(229, 216, 203, 0.45); }

textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(252, 247, 235, 0.09);
}

/* Honeypot — für Menschen komplett unsichtbar */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form__error {
  margin: -0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--red);
  text-align: left;
}

/* ---------- Buttons ---------- */

.btn { margin-top: 0.4rem; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

.back {
  align-self: flex-start;
  margin-bottom: 0.4rem;
  padding: 0.4rem 0;
  background: none;
  border: 0;
  color: var(--beige);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.back:hover { opacity: 1; }

/* ---------- Danke / Weiterleitung ---------- */

.badge {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: var(--green-900);
  background: var(--gold);
  border-radius: 0;
  animation: pop 0.5s var(--ease);
}

.badge--gold { font-size: 2.3rem; }

.redirect__note {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: rgba(229, 216, 203, 0.6);
}

/* ---------- Footer ---------- */

.foot {
  margin-top: auto;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(229, 216, 203, 0.45);
}

/* ---------- Größere Screens ---------- */

@media (min-width: 640px) {
  .stage { justify-content: flex-start; }
  .brand { margin-bottom: 1rem; }
}

