/* FCBinside Kontakt – Formular. Farben über Variablen, Dunkelmodus über html.fi-dark (Theme). */

.fik { --pk: #e6197a; --ink: #121212; --mu: #666b78; --ln: #e3e6e8; --bg: #fff; --soft: #f6f6f8; --field: #fff;
	position: relative; display: flex; flex-direction: column; gap: 30px; margin: 0; color: var(--ink); font-size: 16px; }
html.fi-dark .fik { --ink: #f2f2f4; --mu: #a4a8b3; --ln: #34363c; --bg: #161718; --soft: #1e1f21; --field: #1b1c1e; }
.fik *, .fik *::before, .fik *::after { box-sizing: border-box; }
.fik fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fik input, .fik textarea, .fik button { font: inherit; }

.fik-label { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 0; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.fik-label small { margin-left: auto; color: var(--mu); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.fik-n { display: grid; place-items: center; flex: none; width: 24px; height: 24px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 800; }
.fik-step:has(:checked) .fik-n, .fik-step:has(textarea:not(:placeholder-shown)) .fik-n { background: var(--pk); color: #fff; }

/* 1 · Anliegen */
.fik-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fik-topic { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border: 1.5px solid var(--ln); background: var(--field); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.fik-topic:hover { border-color: var(--c); }
.fik-topic input { position: absolute; opacity: 0; pointer-events: none; }
.fik-topic-i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; background: color-mix(in srgb, var(--c) 12%, transparent); font-size: 18px; transition: transform .2s; }
.fik-topic-t { font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.fik-topic:has(:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--field)); }
.fik-topic:has(:checked) .fik-topic-i { background: var(--c); transform: scale(1.06) rotate(-6deg); }
.fik-topic:has(:checked)::after { content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--c); }
.fik-topic:has(:focus-visible) { outline: 2px solid var(--c); outline-offset: 2px; }

/* 2 · Wo  /  3 · Stimmung */
.fik-row2 { display: grid; gap: 30px; }
.fik-seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ln); }
.fik-seg label { position: relative; cursor: pointer; }
.fik-seg label + label { border-left: 1.5px solid var(--ln); }
.fik-seg input, .fik-moods input { position: absolute; opacity: 0; pointer-events: none; }
.fik-seg span { display: grid; place-items: center; height: 48px; background: var(--field); font-size: 14.5px; font-weight: 700; transition: background .15s, color .15s; }
.fik-seg label:hover span { background: var(--soft); }
.fik-seg :checked + span { background: var(--ink); color: var(--bg); }
.fik-seg :focus-visible + span, .fik-moods :focus-visible + span { outline: 2px solid var(--pk); outline-offset: -2px; }
.fik-moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.fik-moods label { position: relative; cursor: pointer; }
.fik-moods span { display: grid; place-items: center; height: 48px; border: 1.5px solid var(--ln); background: var(--field); font-size: 24px; filter: grayscale(1); opacity: .55; transition: filter .15s, opacity .15s, transform .15s, border-color .15s; }
.fik-moods label:hover span { filter: none; opacity: 1; transform: translateY(-2px); }
.fik-moods :checked + span { border-color: var(--pk); background: color-mix(in srgb, var(--pk) 8%, var(--field)); filter: none; opacity: 1; transform: scale(1.08); }

/* 4 · Nachricht */
.fik-area { position: relative; border: 1.5px solid var(--ln); background: var(--field); transition: border-color .15s, box-shadow .15s; }
.fik-area:focus-within { border-color: var(--pk); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pk) 14%, transparent); }
.fik textarea { display: block; width: 100%; min-height: 180px; padding: 16px 16px 36px; border: 0; background: transparent; color: var(--ink); font-size: 16px; line-height: 1.55; resize: none; outline: 0; }
.fik textarea::placeholder, .fik input::placeholder { color: var(--mu); opacity: 1; }
.fik-count { position: absolute; right: 12px; bottom: 10px; color: var(--mu); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fik-count.is-near { color: #dc2626; }
.fik-link { margin-top: 8px; }

.fik-field input { display: block; width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--ln); border-radius: 0; background: var(--field); color: var(--ink); font-size: 16px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.fik-field input:focus { border-color: var(--pk); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pk) 14%, transparent); }

/* 5 · Wer */
.fik-who { display: grid; gap: 8px; }
.fik-switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--ink); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.fik-switch input { position: absolute; opacity: 0; pointer-events: none; }
.fik-switch-ui { position: relative; flex: none; width: 42px; height: 24px; background: var(--ln); transition: background .2s; }
.fik-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.fik-switch :checked + .fik-switch-ui { background: var(--pk); }
.fik-switch :checked + .fik-switch-ui::after { transform: translateX(18px); }
.fik-switch :focus-visible + .fik-switch-ui { outline: 2px solid var(--pk); outline-offset: 2px; }

.fik-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Absenden */
.fik-foot { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; border-top: 1px solid var(--ln); }
.fik-check { display: flex; align-items: flex-start; gap: 12px; color: var(--mu); font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.fik-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pk); cursor: pointer; }
.fik-check a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.fik-send { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 58px; padding: 0 28px; border: 0; background: var(--pk); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .15s, transform .15s; }
.fik-send:hover { background: #c8126a; }
.fik-send:hover svg { transform: translateX(4px); }
.fik-send svg { transition: transform .2s; }
.fik-send.is-busy { pointer-events: none; }
.fik-send.is-busy span, .fik-send.is-busy svg { opacity: 0; }
.fik-send.is-busy::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: fik-spin .7s linear infinite; }
@keyframes fik-spin { to { transform: rotate(360deg); } }

.fik-err { margin: -12px 0 0; padding: 12px 14px; border-left: 3px solid #dc2626; background: color-mix(in srgb, #dc2626 8%, var(--field)); color: var(--ink); font-size: 14px; font-weight: 600; }
.fik .is-bad { animation: fik-shake .35s; }
.fik .fik-area.is-bad, .fik .fik-field.is-bad input { border-color: #dc2626; }
.fik .fik-topics.is-bad .fik-topic { border-color: #f1a3a3; }
.fik .fik-check.is-bad { color: #dc2626; }
@keyframes fik-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Danke */
.fik.is-done > :not(.fik-done) { display: none; }
.fik-done { display: flex; flex-direction: column; align-items: center; padding: 40px 10px; text-align: center; animation: fik-in .5s cubic-bezier(.2, .7, .2, 1); }
.fik-done-i { color: var(--pk); }
.fik-done-i circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: fik-draw .6s .1s forwards; }
.fik-done-i path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: fik-draw .4s .55s forwards; }
.fik-done h3 { margin: 20px 0 0; color: var(--ink); font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.fik-done p { max-width: 420px; margin: 10px 0 0; color: var(--mu); font-size: 16px; line-height: 1.55; }
.fik-again { margin-top: 26px; height: 48px; padding: 0 22px; border: 1.5px solid var(--ln); background: transparent; color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; }
.fik-again:hover { border-color: var(--ink); }
@keyframes fik-draw { to { stroke-dashoffset: 0; } }
@keyframes fik-in { from { opacity: 0; transform: translateY(16px); } }

@media (min-width: 600px) {
	.fik-topics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.fik-topic { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 96px; padding: 14px; }
	.fik-topic-i { width: 38px; height: 38px; font-size: 20px; }
	.fik-row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.fik-who { grid-template-columns: 1fr 1fr; }
	.fik-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
	.fik-send { width: auto; flex: none; }
}
@media (prefers-reduced-motion: reduce) { .fik *, .fik { animation: none !important; transition: none !important; } .fik-done-i * { stroke-dashoffset: 0; } }
