/* ============================================================
   House of Relax Bamberg – Newsletter
   Farben laut Logohandbuch: Beige #7d6647, Dunkelgrau #4a4a49
   Gebaut für Handy zuerst – die Seite wird per QR-Code aufgerufen.
   ============================================================ */

.hor {
  --hor-beige:      #7d6647;
  --hor-beige-dark: #6a5539;
  --hor-grey:       #4a4a49;
  --hor-grey-soft:  #7a7a78;
  --hor-line:       #e5ded4;
  --hor-bg:         #faf7f3;

  /* Gotham ist lizenzpflichtig. Solange keine Lizenz eingebunden ist,
     wird die geometrischste verfügbare Systemschrift genutzt. */
  --hor-font: "Gotham", "Montserrat", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  font-family: var(--hor-font);
  color: var(--hor-grey);
  display: flex;
  justify-content: center;
  padding: 24px 18px calc(40px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.hor * { box-sizing: border-box; }

.hor-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--hor-line);
  border-radius: 22px;
  padding: 34px 26px 30px;
  box-shadow: 0 14px 40px rgba(74, 74, 73, .07);
  text-align: center;
}

/* ---------- Logo ---------- */

.hor-logo { margin-bottom: 26px; }

.hor-logo svg {
  display: block;
  width: 92px;
  height: auto;
  margin: 0 auto 14px;
  color: var(--hor-beige);
}

.hor-wordmark {
  margin: 0 !important;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--hor-grey) !important;
  line-height: 1.25;
}
.hor-wordmark span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 5px;
  color: var(--hor-grey-soft);
  margin-top: 3px;
}

/* ---------- Text ---------- */

.hor-headline {
  font-size: 27px !important;
  font-weight: 600 !important;
  line-height: 1.25;
  color: var(--hor-grey) !important;
  margin: 0 0 12px 0 !important;
}

.hor-subline {
  font-size: 15px !important;
  line-height: 1.6;
  color: var(--hor-grey-soft) !important;
  margin: 0 0 26px 0 !important;
}

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

.hor-field { display: block; text-align: left; margin-bottom: 15px; }

.hor-field > span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--hor-grey);
  margin-bottom: 7px;
}

.hor input[type=text],
.hor input[type=email] {
  width: 100%;
  font-family: inherit;
  /* 16px verhindert das automatische Zoomen beim Fokus in iOS Safari */
  font-size: 16px;
  color: var(--hor-grey);
  background: var(--hor-bg);
  border: 1px solid var(--hor-line);
  border-radius: 14px;
  padding: 15px 16px;
  -webkit-appearance: none;
  appearance: none;
}
.hor input::placeholder { color: #b8b2a8; }
.hor input:focus {
  outline: none;
  background: #fff;
  border-color: var(--hor-beige);
  box-shadow: 0 0 0 3px rgba(125, 102, 71, .14);
}

.hor-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  color: var(--hor-grey-soft);
  margin: 6px 0 20px;
  cursor: pointer;
}
.hor-check input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--hor-beige);
}
.hor-check a { color: var(--hor-beige); text-decoration: underline; text-underline-offset: 2px; }

.hor-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hor .hor-btn {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--hor-beige);
  border: 0;
  border-radius: 50px;
  /* Große Trefferfläche für Daumen */
  padding: 18px 20px;
  cursor: pointer;
  transition: background .2s ease;
}
.hor .hor-btn:hover { background: var(--hor-beige-dark); }
.hor .hor-btn:active { transform: translateY(1px); }
.hor .hor-btn[disabled] { opacity: .6; cursor: default; }

/* ---------- Rückmeldungen ---------- */

.hor-msg {
  margin: 16px 0 0 0 !important;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px !important;
  line-height: 1.55;
  text-align: left;
}
.hor-msg.is-error { background: #fdf1ef; border: 1px solid #f3d6d0; color: #a8443a !important; }
.hor-msg.is-ok { background: var(--hor-bg); border: 1px solid var(--hor-line); color: var(--hor-grey) !important; }

/* ---------- Ergebnis nach dem Bestätigen ---------- */

.hor-result { padding: 10px 0 4px; }

.hor-result p {
  font-size: 16px !important;
  line-height: 1.6;
  margin: 0 !important;
  color: var(--hor-grey) !important;
}

.hor-result p.hor-result-hint {
  font-size: 13.5px !important;
  color: var(--hor-grey-soft) !important;
  margin: 12px 0 0 0 !important;
}

.hor-icon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  overflow: visible;
}

.hor-icon-ring,
.hor-icon-mark { stroke: var(--hor-beige); }
.hor-result--error .hor-icon-ring,
.hor-result--error .hor-icon-mark { stroke: #a8443a; }

/* Der Kreis wird gezeichnet: Umfang 2·pi·32 = 201 */
.hor-icon-ring {
  stroke-dasharray: 201;
  stroke-dashoffset: 201;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: hor-draw-ring .55s cubic-bezier(.25,.8,.35,1) forwards;
}

/* Danach der Haken. Länge großzügig gesetzt, überschüssiger Wert schadet nicht. */
.hor-icon-mark {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: hor-draw-mark .38s cubic-bezier(.65,0,.35,1) .42s forwards;
}

/* Ein kurzer Impuls, sobald der Haken sitzt */
.hor-result--ok .hor-icon {
  animation: hor-pop .4s cubic-bezier(.34,1.56,.64,1) .72s;
}

@keyframes hor-draw-ring { to { stroke-dashoffset: 0; } }
@keyframes hor-draw-mark { to { stroke-dashoffset: 0; } }
@keyframes hor-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.09); }
  100% { transform: scale(1); }
}

/* Ohne Animation trotzdem vollständig sichtbar */
@media (prefers-reduced-motion: reduce) {
  .hor-icon-ring,
  .hor-icon-mark {
    stroke-dashoffset: 0;
    animation: none;
  }
  .hor-result--ok .hor-icon { animation: none; }
}

/* ---------- Etwas mehr Luft auf größeren Bildschirmen ---------- */

@media (min-width: 600px) {
  .hor { padding: 50px 20px; }
  .hor-card { padding: 44px 40px 38px; border-radius: 26px; }
  .hor-headline { font-size: 30px !important; }
  .hor-logo svg { width: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .hor .hor-btn { transition: none; }
  .hor .hor-btn:active { transform: none; }
}
