/* ============================================================
   In-Dish · Review Gate — Branding
   Farben & Schriften abgeleitet von in-dish.at
   ============================================================ */

:root {
  /* Marken-Farben */
  --green-900: #002312;   /* Haupt-Hintergrund */
  --green-800: #092521;
  --green-700: #0d3220;
  --olive:     #505e45;
  --cream:     #fcf7eb;   /* Haupt-Text auf Grün */
  --cream-2:   #fff9f3;
  --beige:     #e5d8cb;
  --gold:      #bc8e56;   /* Akzent / Sterne */
  --gold-2:    #af9145;
  --red:       #ff0031;   /* Fehler / Warnung */
  --ink:       #15191a;

  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 30rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  color: var(--cream);
  background:
    radial-gradient(120% 80% at 50% -10%, var(--green-700) 0%, var(--green-900) 55%, #001a0d 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 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__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(--gold);
  background: rgba(252, 247, 235, 0.06);
  border: 1px solid rgba(188, 142, 86, 0.4);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang:hover { background: rgba(188, 142, 86, 0.18); color: var(--cream-2); }

/* ---------- 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: 8px;
}

.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: var(--radius-sm);
  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 {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.5rem;
  margin-top: 0.4rem;
  font-family: "Outfit", sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--green-900);
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s ease, opacity 0.2s ease;
}

.btn:hover { background: var(--gold-2); }
.btn:active { transform: scale(0.99); }

.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: 50%;
  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; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
