/* "Warst du dabei?" (16.11.2026) */

.ed-page { background: var(--cream); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ----- Kopf ----- */
.ed-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  padding: clamp(120px, 13vw, 160px) 0 clamp(48px, 6vw, 80px);
}
.ed-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .ed-hero-inner { grid-template-columns: 1fr; }
  .ed-hero-media { max-width: 560px; }
}
.ed-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.ed-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--gold-300);
  margin: 0 0 26px;
}
.ed-lede { max-width: 62ch; color: rgba(255, 255, 255, 0.8); margin: 0 0 18px; text-wrap: pretty; }
.ed-prize { max-width: 62ch; margin: 0; padding-left: 14px; border-left: 2px solid var(--gold-500); color: rgba(255, 255, 255, 0.82); }
.ed-prize strong { color: var(--gold-300); font-weight: 600; }

/* ----- Formular ----- */
.ed-main { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.ed-wrap { max-width: 920px; }
.ed-step { padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.ed-step:first-child { padding-top: 0; }
.ed-step:last-of-type { border-bottom: 0; }
.ed-step-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-bottom: 24px; }
.ed-step-no {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--gold-700);
  color: var(--gold-700);
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 700;
}
.ed-h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.1; color: var(--navy-800); margin: 0 0 6px; }
.ed-hint { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Sterne-Bewertung */
.rate-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px 28px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.rate-text { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline; }
.rate-no { font-size: 0.78rem; letter-spacing: 0.18em; color: var(--gold-700); font-weight: 600; }
.rate-title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--navy-800); margin: 0; line-height: 1.2; }
.rate-desc { margin: 2px 0 0; font-size: 0.88rem; color: var(--muted); }
.rate-control { display: flex; align-items: center; gap: 12px; }
.stars { display: inline-flex; flex-direction: row-reverse; position: relative; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label {
  display: block;
  width: 38px; height: 38px;
  cursor: pointer;
  background: var(--line);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6.1 6.7.8-4.9 4.6 1.3 6.6L12 17.4l-6 3.3 1.3-6.6L2.4 9.5l6.7-.8z'/%3E%3C/svg%3E") center / 82% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6.1 6.7.8-4.9 4.6 1.3 6.6L12 17.4l-6 3.3 1.3-6.6L2.4 9.5l6.7-.8z'/%3E%3C/svg%3E") center / 82% no-repeat;
  transition: background .15s ease, transform .15s var(--ease-out);
}
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label { background: var(--gold-500); }
.stars label:active { transform: scale(0.9); }
.stars input:focus-visible + label { outline: 2px solid var(--navy-700); outline-offset: 2px; background: var(--gold-400); }
.rate-val { min-width: 4.2em; font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rate-clear { border: 0; background: none; padding: 4px 2px; color: var(--muted); font: inherit; font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rate-clear:hover { color: var(--navy-800); }

/* Felder */
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ed-field { margin-bottom: 18px; }
.ed-field label, .ed-role legend { display: block; font-weight: 600; font-size: 0.95rem; color: var(--navy-800); margin-bottom: 6px; }
.ed-field input[type="text"], .ed-field input[type="email"], .ed-field textarea, .ed-field input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(14, 27, 58, 0.25);
  border-radius: 4px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ed-field textarea { resize: vertical; min-height: 96px; }
.ed-field input:focus, .ed-field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(37, 64, 124, 0.18); }
.ed-field .is-invalid { border-color: #b3261e; }
.ed-role { border: 0; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ed-role legend { width: 100%; }
.ed-role label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ed-role input { accent-color: var(--navy-700); width: 18px; height: 18px; }
.ed-files { list-style: none; margin: 8px 0 0; padding: 0; font-size: 0.88rem; color: var(--muted); }
.ed-files li { padding: 2px 0; }

/* Freigaben */
.ed-checks { display: grid; gap: 12px; }
.ed-check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; }
.ed-check input { accent-color: var(--navy-700); width: 20px; height: 20px; margin-top: 3px; }
.ed-note { font-size: 0.88rem; line-height: 1.55; color: var(--muted); max-width: 70ch; margin: 14px 0 0; }
.ed-note a, .ed-details a { text-decoration: underline; text-underline-offset: 3px; }
.ed-draw { margin-top: 26px; padding: 20px 22px; background: var(--cream-2); border-left: 3px solid var(--gold-500); }
.ed-draw .ed-note { margin-top: 10px; }
.ed-check.is-invalid span { color: #b3261e; }
.ed-msg { margin: 22px 0 0; padding: 12px 16px; border-left: 3px solid #b3261e; background: #fbeceb; color: #7a1a15; }
.ed-msg.ok { border-left-color: #2e7d32; background: #e9f4ea; color: #1e5a22; }
.ed-submit { margin-top: 22px; padding: 14px 36px; }
.ed-submit[disabled] { opacity: 0.6; cursor: wait; }

/* Danke */
.ed-thanks { padding: clamp(32px, 5vw, 56px) 0; }
.ed-thanks:focus { outline: none; }
.ed-summary { margin: 20px 0; border-top: 1px solid var(--line); }
.ed-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ed-summary .sum-stars { color: var(--gold-700); letter-spacing: 0.1em; white-space: nowrap; }

/* Rechtstexte */
.ed-legal { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.ed-details { border-bottom: 1px solid var(--line); }
.ed-details summary { padding: 18px 4px; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--navy-800); cursor: pointer; }
.ed-details summary:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 2px; }
.ed-details-body { padding: 0 4px 22px; max-width: 78ch; font-size: 0.95rem; color: var(--muted); }
.ed-details-body ul { padding-left: 1.2em; }
.platzhalter { background: #fff3c4; color: #5c4600; padding: 0 4px; }

@media (max-width: 720px) {
  .ed-grid { grid-template-columns: 1fr; }
  .rate { grid-template-columns: 1fr; }
  .rate-control { justify-content: flex-start; }
  .stars label { width: 44px; height: 44px; }
  .ed-step-head { grid-template-columns: 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .stars label, .ed-field input, .ed-field textarea { transition: none; }
}
