/* Franchise-Formular im Munchies-Look */
.ff-wrap { padding: 0 0 clamp(56px, 8vw, 110px); }
.ff-wrap > .wrap > h2 { color: var(--red); font-size: clamp(2rem, 4vw, 3rem); text-align: center; font-style: italic; }
.ff-pre { background: var(--soft); border-left: 6px solid var(--red); padding: 1rem 1.2rem; font-size: 1.05rem; margin-bottom: 2rem; }

/* Fortschritt */
.ff-nav { list-style: none; margin: 0 0 2.2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; counter-reset: s; }
.ff-nav::before { content: ""; position: absolute; left: 16%; right: 16%; top: 11px; border-top: 3px dotted #cfcfcf; }
.ff-nav li { position: relative; text-align: center; font-weight: 700; text-transform: uppercase; font-size: .95rem; color: #8a8a8a; padding-top: 34px; }
.ff-dot { position: absolute; top: 0; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: #fff; border: 3px solid #cfcfcf; }
.ff-nav li.is-on { color: var(--red); }
.ff-nav li.is-on .ff-dot { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(255,0,0,.2); }
.ff-nav li.is-done { color: var(--ink); }
.ff-nav li.is-done .ff-dot { border-color: var(--ink); background: var(--ink); }

/* Schritt */
.ff-step[hidden] { display: none; }
.ff-step > h3 { color: var(--red); font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-style: italic; margin-bottom: 1.2rem; outline: none; }
.ff-sec { margin-bottom: 2rem; }
.ff-sec h4 { margin: 0 0 .3rem; font-size: 1.4rem; font-weight: 900; text-transform: uppercase; }
.ff-hint { margin: .2rem 0 .6rem; font-size: .98rem; color: #555; }
.ff-hint--sec { margin-bottom: 1rem; }
.ff-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 18px; }
.ff-w-full { grid-column: 1 / -1; }
.ff-w-half { grid-column: span 3; }
.ff-w-third { grid-column: span 2; }
.ff-w-twothirds { grid-column: span 4; }
@media (max-width: 640px) { .ff-w-half, .ff-w-third, .ff-w-twothirds { grid-column: 1 / -1; } .ff-nav li { font-size: .75rem; } }

/* Felder */
.ff-field { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ff-field > label, .ff-field > legend, .ff-follow > label { font-weight: 700; font-size: 1.1rem; line-height: 1.3; padding: 0; }
.ff-field legend { float: left; width: 100%; margin-bottom: 6px; }
.ff-field legend + * { clear: both; }
.ff-field.required-field > label::after, .ff-field.required-field > legend::after { content: " *"; color: var(--red); }
.ff-opt { font-weight: 400; color: #777; font-size: .95rem; }
.ff input[type=text], .ff input[type=email], .ff input[type=tel], .ff input[type=number], .ff input[type=date], .ff textarea {
  font: 400 1.15rem var(--font-text); padding: .75em .85em; border: 2px solid #c9c9c9; border-radius: 10px; width: 100%; background: #fff; color: var(--ink);
}
.ff input[type=file] { font: 400 1rem var(--font-text); padding: .6em; border: 2px dashed #c9c9c9; border-radius: 10px; background: #fafafa; width: 100%; }
.ff input[type=file]::file-selector-button { font: 700 1rem var(--font); background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: .5em 1.1em; margin-right: 1em; cursor: pointer; }
.ff input:focus, .ff textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(255,0,0,.18); }
.ff textarea { resize: vertical; min-height: 7rem; }

/* Auswahl (grosse Kreise wie im Vorbild) */
.ff-opts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 4px; }
.ff-opts--multi { gap: 12px 24px; }
.ff-opts label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 1.1rem; }
.ff-opts input { appearance: none; -webkit-appearance: none; margin: 0; width: 28px; height: 28px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; display: grid; place-content: center; cursor: pointer; flex: none; }
.ff-opts input::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .12s; }
.ff-opts--multi input { border-radius: 8px; }
.ff-opts--multi input::before { border-radius: 3px; width: 14px; height: 14px; }
.ff-opts input:checked { border-color: var(--red); }
.ff-opts input:checked::before { transform: scale(1); }
.ff-opts input:focus-visible, .ff-check input:focus-visible { outline: 3px solid #ffd400; outline-offset: 3px; }
.ff-follow { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ff-follow[hidden] { display: none; }
.ff-field[hidden] { display: none; }

/* Zustimmung */
.ff-legal { margin: 2rem 0 1rem; font-size: .92rem; color: #444; border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.ff-check { margin-bottom: 14px; }
.ff-check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 1.05rem; cursor: pointer; }
.ff-check input { accent-color: var(--red); width: 22px; height: 22px; flex: none; margin-top: .1em; }
.ff-check a { color: var(--red); font-weight: 700; }
.ff-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fehler */
.ff-err { color: #c40000; font-weight: 700; font-size: .98rem; margin: 2px 0 0; }
.ff-err[hidden] { display: none; }
.ff-field.has-error input[type=text], .ff-field.has-error input[type=email], .ff-field.has-error input[type=tel], .ff-field.has-error input[type=number], .ff-field.has-error input[type=date], .ff-field.has-error textarea, .ff-field.has-error input[type=file] { border-color: #c40000; }
.ff-field.has-error .ff-opts input { border-color: #c40000; }

/* Buttons */
.ff-req { font-size: .95rem; color: #555; margin: 1.5rem 0 1rem; }
.ff-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ff-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; margin-left: auto; padding: .85em 1.7em; font: italic 900 1.2rem/1 var(--font); letter-spacing: .02em; text-transform: uppercase; color: #fff; background: var(--red); border: 3px solid var(--red); border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.ff-btn:hover { background: #fff; color: var(--red); transform: translateY(-2px); }
.ff-btn svg { width: 1.1em; height: 1.1em; flex: none; }
.ff-btn[hidden], .ff-back[hidden] { display: none; }
.ff-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.ff-back { font: 700 1.1rem var(--font); background: none; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; padding: .6em .2em; }
@media (max-width: 640px) { .ff-btn { width: 100%; } .ff-actions { flex-direction: column-reverse; align-items: stretch; } .ff-back { text-align: center; } }
.ff-status { margin-top: 1rem; font-weight: 700; }
.ff-status.is-error { color: #c40000; }
.ff-status a, .ff-fail a { color: var(--red); }
.ff-demo { margin-top: 1rem; background: #fff3a8; padding: .6rem .9rem; border-radius: 8px; font-size: .95rem; }
.ff-fail { background: var(--soft); padding: 1.2rem; border-left: 6px solid var(--red); }

/* Danke */
.ff-done { text-align: center; padding: 3rem 1rem; outline: none; }
.ff-done h3 { color: var(--red); font-size: clamp(2.4rem, 6vw, 4rem); font-style: italic; }
.ff-done p { font-size: 1.2rem; max-width: 40rem; margin: 0 auto 1.5rem; }

.ff-link { color: var(--red); font-weight: 700; text-underline-offset: .2em; }

/* Zahlenfeld: ohne Pfeile, damit es wie die anderen Felder aussieht */
.ff input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.ff input[type=number]::-webkit-outer-spin-button, .ff input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Formular-Ueberschrift im einheitlichen Stil (dunkel, linksbuendig) */
.ff-wrap > .wrap > h2 { color: var(--red); text-align: left; }
