/*! Frisuren-Finder 1.0.0 – alle Regeln unter .ff, damit das Theme nicht betroffen ist */
.ff {
	--ff-ink: #2b2530;
	--ff-muted: #6e6572;
	--ff-line: #e4d9e1;
	--ff-paper: #ffffff;
	--ff-tint: #f6eef3;
	--ff-accent: #8c4f7a;
	--ff-accent-ink: #ffffff;
	--ff-good: #4e7d66;
	--ff-warn: #9a6a1f;

	box-sizing: border-box;
	max-width: 760px;
	margin: 2rem auto;
	padding: clamp(1.25rem, 4vw, 2.25rem);
	background: var(--ff-paper);
	color: var(--ff-ink);
	border: 1px solid var(--ff-line);
	border-radius: 20px;
	font: inherit;
	line-height: 1.5;
}
.ff *, .ff *::before, .ff *::after { box-sizing: inherit; }
.ff :where(h2, h3, h4, p, ul, ol, blockquote) { margin: 0; }

.ff-head { margin-bottom: 1.75rem; }
.ff-title { font-size: clamp(1.5rem, 4.5vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; }
.ff-lead { margin-top: .6rem; color: var(--ff-muted); max-width: 60ch; }

/* Fortschritt */
.ff-progress { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; font-size: .875rem; color: var(--ff-muted); }
.ff-progress__text { white-space: nowrap; }
.ff-progress__bar { flex: 1; height: 4px; background: var(--ff-tint); border-radius: 2px; overflow: hidden; }
.ff-progress__bar > span { display: block; height: 100%; background: var(--ff-accent); transition: width .3s ease; }

.ff-question { font-size: clamp(1.2rem, 3.4vw, 1.4rem); line-height: 1.25; margin-bottom: 1.1rem; }
.ff-question:focus { outline: none; }
.ff-question:focus-visible { outline: 2px solid var(--ff-accent); outline-offset: 4px; border-radius: 4px; }

/* Antwortoptionen */
.ff-options { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ff-options--faces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 480px) { .ff-options--faces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ff-option {
	display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
	width: 100%; min-height: 3.25rem; margin: 0; padding: .85rem 1rem;
	font: inherit; text-align: left; color: var(--ff-ink);
	background: var(--ff-paper); border: 1.5px solid var(--ff-line); border-radius: 12px;
	cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
	-webkit-appearance: none; appearance: none; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.ff-option:hover { border-color: var(--ff-accent); background: var(--ff-tint); color: var(--ff-ink); }
.ff-option:focus-visible { outline: 2px solid var(--ff-accent); outline-offset: 2px; }
.ff-option.is-selected { border-color: var(--ff-accent); background: var(--ff-tint); }
.ff-option__label { font-weight: 600; }
.ff-option__hint { font-size: .85rem; color: var(--ff-muted); line-height: 1.35; }

.ff-options--faces .ff-option { align-items: center; text-align: center; padding: 1rem .6rem .9rem; }
.ff-face { width: 44px; height: 52px; margin-bottom: .35rem; fill: none; stroke: var(--ff-ink); stroke-width: 1.6; stroke-linejoin: round; }
.ff-option:hover .ff-face, .ff-option.is-selected .ff-face { stroke: var(--ff-accent); fill: #fff; }

.ff-help { margin-top: 1rem; font-size: .9rem; color: var(--ff-muted); }
.ff-help summary { cursor: pointer; color: var(--ff-accent); font-weight: 600; width: fit-content; }
.ff-help p { margin-top: .5rem; max-width: 62ch; }

/* Navigation */
.ff-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 1.25rem; }
.ff-nav--end { justify-content: space-between; margin-top: 1.75rem; }
.ff-link-btn, .ff-btn, .ff-copy {
	font: inherit; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none;
	box-shadow: none; text-transform: none; letter-spacing: normal; line-height: 1.3;
}
.ff-link-btn { padding: .4rem 0; background: none; border: 0; color: var(--ff-accent); text-decoration: underline; text-underline-offset: 3px; }
.ff-link-btn:hover { background: none; color: var(--ff-ink); }
.ff-btn { padding: .75rem 1.3rem; background: var(--ff-accent); color: var(--ff-accent-ink); border: 0; border-radius: 999px; font-weight: 600; }
.ff-btn:hover { background: var(--ff-ink); color: #fff; }
.ff-link-btn:focus-visible, .ff-btn:focus-visible, .ff-copy:focus-visible, .ff-more:focus-visible { outline: 2px solid var(--ff-accent); outline-offset: 3px; }

/* Ergebnisse */
.ff-summary { color: var(--ff-muted); font-size: .9rem; margin: -.5rem 0 1.25rem; }
.ff-hint { background: var(--ff-tint); padding: .8rem 1rem; border-radius: 10px; font-size: .9rem; margin-bottom: 1.25rem; }
.ff-list { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: ff; }
.ff-result { padding: 1.25rem; border: 1px solid var(--ff-line); border-radius: 14px; }
.ff-result--top { border: 2px solid var(--ff-accent); padding: clamp(1.25rem, 3vw, 1.6rem); }
.ff-result__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: .5rem; }
.ff-result__name { font-size: 1.15rem; line-height: 1.25; }
.ff-result--top .ff-result__name { font-size: clamp(1.25rem, 3.6vw, 1.5rem); }
.ff-match { font-size: .85rem; color: var(--ff-muted); white-space: nowrap; }
.ff-match__value { font-weight: 700; color: var(--ff-good); font-size: 1rem; }
.ff-result__desc { max-width: 64ch; }

.ff-reasons { list-style: none; padding: 0; margin-top: .8rem; display: grid; gap: .3rem; font-size: .92rem; }
.ff-reasons li { position: relative; padding-left: 1.4rem; }
.ff-reasons li::before { content: ""; position: absolute; left: .15rem; top: .45em; width: .7rem; height: .38rem; border-left: 2px solid var(--ff-good); border-bottom: 2px solid var(--ff-good); transform: rotate(-45deg); }
.ff-warn { margin-top: .6rem; font-size: .9rem; color: var(--ff-warn); padding-left: 1.4rem; position: relative; }
.ff-warn::before { content: "!"; position: absolute; left: .3rem; font-weight: 700; }

/* Salon-Zettel: das Herzstück des Ergebnisses */
.ff-salon { margin-top: 1.1rem; padding: 1rem 1.1rem; background: var(--ff-tint); border-radius: 12px; border-top: 2px dashed var(--ff-line); }
.ff-salon__label { font-size: .82rem; font-weight: 600; color: var(--ff-accent); margin-bottom: .35rem; }
.ff-salon__text { font-size: 1rem; font-style: italic; border: 0; padding: 0; margin: 0; quotes: none; background: none; color: var(--ff-ink); }
.ff-salon__text::before, .ff-salon__text::after { content: none; }
.ff-copy { margin-top: .75rem; padding: .45rem .9rem; background: var(--ff-paper); color: var(--ff-ink); border: 1.5px solid var(--ff-line); border-radius: 999px; font-size: .88rem; font-weight: 600; }
.ff-copy:hover { border-color: var(--ff-accent); background: var(--ff-paper); color: var(--ff-ink); }
.ff-copy.is-done { border-color: var(--ff-good); color: var(--ff-good); }

.ff-more { display: inline-block; margin-top: .9rem; color: var(--ff-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ff-more:hover { color: var(--ff-ink); }

.ff-disclaimer { margin-top: 1.5rem; font-size: .8rem; color: var(--ff-muted); }

@media (prefers-reduced-motion: reduce) {
	.ff * { transition: none !important; scroll-behavior: auto !important; }
}
