/* ==========================================================================
   /faq/ — page layout only. Tokens from theme.css (var(--…) only), no new colours or sizes, no forced overrides.
   Idea: „Das Fragenkino“ — a peephole-octagon hero, five jump tiles, a dark numbered accordion with a sticky head,
   a you-ask / we-ask-back dialogue pair, a lookup table, four check cards and one call strip.
   Prefix: fq-   (the shared accordion classes .faq / .faq-item stay untouched)
   ========================================================================== */

/* 01 · hero: octagon peephole ---------------------------------------------- */
.fq-hero .fq-hero__grid { display: grid; gap: var(--sp-7); align-items: center; }
.fq-hero .hero__content { max-width: 44rem; }
.fq-hero__figure { position: relative; justify-self: center; width: min(100%, 17rem); margin-bottom: var(--sp-4); }
.fq-hero__figure::before {
	content: ""; position: absolute; inset: -7%; clip-path: var(--oct);
	background: var(--grad-band); opacity: 0.8;
}
.fq-hero__figure::after {
	content: ""; position: absolute; top: -2%; right: 6%; width: 0.9rem; aspect-ratio: 1; border-radius: 50%;
	background: var(--spark); box-shadow: 0 0 0 4px color-mix(in srgb, var(--spark) 25%, transparent);
}
.fq-hero__frame { --ratio: 1; clip-path: var(--oct); border-radius: 0; }
.fq-hero__figure .frame__tag { left: 50%; bottom: 0; transform: translate(-50%, 55%); width: max-content; max-width: calc(100% + 2rem); }
@media (min-width: 48em) {
	.fq-hero .fq-hero__grid { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-8); }
	.fq-hero__figure { width: clamp(15rem, 28vw, 22rem); margin-bottom: 0; }
}

/* 02 · Themen-Sprung: five jump tiles ------------------------------------- */
.fq-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
.fq-topic { min-width: 0; }
.fq-topic__link {
	position: relative; display: grid; height: 100%; min-height: var(--tap);
	grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "badge title arrow" "badge text arrow";
	column-gap: var(--sp-4); row-gap: 0.2rem; align-items: center;
	padding: var(--sp-4) var(--sp-5); background: var(--c-surface); color: var(--c-fg); text-decoration: none;
	border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-sm);
	transition: transform var(--dur-base) var(--ease), border-color var(--dur-base), box-shadow var(--dur-base);
}
.fq-topic__link:hover { transform: translateY(-4px); border-color: var(--violet-500); box-shadow: var(--sh-md); text-decoration: none; }
.fq-topic__badge {
	grid-area: badge; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; clip-path: var(--oct);
	background: var(--violet-500); color: var(--white); transition: background-color var(--dur-base) var(--ease);
}
.fq-topic__link:hover .fq-topic__badge { background: var(--violet-700); }
.fq-topic__badge .i { width: 1.5rem; height: 1.5rem; }
.fq-topic__title { grid-area: title; font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.15; color: var(--c-heading); }
.fq-topic__text { grid-area: text; font-size: var(--fs-sm); line-height: 1.45; color: var(--c-muted); }
.fq-topic__arrow { grid-area: arrow; color: var(--c-accent); transition: transform var(--dur-fast) var(--ease); }
.fq-topic__link:hover .fq-topic__arrow { transform: translateY(4px); }
@media (min-width: 40em) {
	.fq-topics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.fq-topic { grid-column: span 2; }
	.fq-topic:nth-child(4) { grid-column: 2 / span 2; }
	.fq-topic:nth-child(5) { grid-column: 4 / span 2; }
	.fq-topic__link {
		grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "badge arrow" "title title" "text text"; align-content: start; row-gap: var(--sp-2);
		padding: var(--sp-5);
	}
	.fq-topic__badge { margin-bottom: var(--sp-2); }
	.fq-topic__arrow { align-self: start; justify-self: end; }
}
@media (min-width: 75em) {
	.fq-topics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.fq-topic, .fq-topic:nth-child(4), .fq-topic:nth-child(5) { grid-column: auto; }
}

/* 03 · FAQ: dark centrepiece, sticky head, numbered octagons ---------------- */
.fq-faq__layout { display: grid; gap: var(--sp-7); }
.fq-faq__head > * + * { margin-top: var(--sp-4); }
.fq-faq__photo { display: none; }
.fq-faq__list { max-width: none; counter-reset: fqq; }
.fq-faq__list .faq-item { counter-increment: fqq; }
.fq-faq__list .faq-item__a { padding-right: var(--sp-5); }
.fq-faq__list .faq-item__a p { max-width: 64ch; }
.fq-faq__list .faq-item__a a { color: var(--c-link); font-weight: 600; }
@media (min-width: 40em) {
	.fq-faq__list .faq-item__q { padding-left: 4.75rem; }
	.fq-faq__list .faq-item__q::before {
		content: counter(fqq, decimal-leading-zero); position: absolute; left: var(--sp-4); top: 50%; margin-top: -1.25rem;
		display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; clip-path: var(--oct);
		background: color-mix(in srgb, var(--violet-500) 26%, transparent); color: var(--violet-200);
		font-family: var(--font-display); font-size: var(--fs-sm); line-height: 1;
		transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
	}
	.fq-faq__list .faq-item[open] > .faq-item__q::before { background: var(--violet-500); color: var(--white); }
	.fq-faq__list .faq-item__a { padding-left: 4.75rem; }
}
@media (min-width: 64em) {
	.fq-faq__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-8); align-items: start; }
	.fq-faq__photo { display: block; width: 9rem; --ratio: 1; clip-path: var(--oct); border-radius: 0; margin-top: var(--sp-6); }
}
@media (min-width: 64em) and (min-height: 50em) {
	.fq-faq__head { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
}

/* 04 · die wichtigste Frage: answer + note, then you ask / we ask back ------- */
.fq-ask__top { display: grid; gap: var(--sp-5); align-items: start; }
.fq-ask__top .notice { max-width: none; }
@media (min-width: 60em) {
	.fq-ask__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); }
}
.fq-h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.15; }
.fq-dialog { display: grid; gap: var(--sp-7); align-items: start; }
.fq-dialog__label {
	display: inline-flex; align-items: center; gap: 0.55em; font-size: var(--fs-xs); font-weight: 700;
	letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-link);
}
.fq-dialog .step__title { font-family: var(--font-body); font-weight: 700; color: var(--c-heading); line-height: 1.35; }
.fq-counter {
	position: relative; display: grid; gap: var(--sp-3); padding: var(--sp-6) var(--sp-5);
	background: var(--ink-850); color: var(--c-fg);
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
	box-shadow: var(--sh-md);
}
.fq-counter__badge { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); }
.fq-counter__badge .i { width: 1.5rem; height: 1.5rem; }
.fq-counter__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-300); }
.fq-counter__text { color: var(--c-fg); }
@media (min-width: 64em) {
	.fq-dialog { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--sp-8); }
	.fq-counter { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
}

/* 05 · Wegweiser: lookup table ------------------------------------------- */
.fq-guide .compare__table { min-width: 34rem; }
.fq-guide .compare__table tbody th { width: 46%; }
.fq-guide .compare__table tbody th, .fq-guide .compare__table td { vertical-align: middle; }
.fq-go-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.6em; }
.fq-go { display: inline-flex; align-items: center; gap: 0.4em; min-height: var(--tap); font-weight: 700; color: var(--c-link); text-decoration: none; }
.fq-go:hover { text-decoration: underline; }
.fq-go .i { margin-right: 0; transition: transform var(--dur-fast) var(--ease); }
.fq-go:hover .i { transform: translateX(4px); }
/* phones: every row becomes its own card, so nobody has to scroll sideways to find the link */
@media (max-width: 47.99em) {
	.fq-guide .compare { overflow: visible; border: 0; background: transparent; }
	.fq-guide .compare__table { display: block; min-width: 0; }
	.fq-guide .compare__table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
	.fq-guide .compare__table tbody, .fq-guide .compare__table tr, .fq-guide .compare__table tbody th, .fq-guide .compare__table td { display: block; }
	.fq-guide .compare__table tr { margin-bottom: var(--sp-3); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
	.fq-guide .compare__table tbody th { position: static; width: auto; border-top: 0; padding: var(--sp-4) var(--sp-4) var(--sp-3); }
	.fq-guide .compare__table td { border-top: 0; padding: 0 var(--sp-4) var(--sp-2); background: var(--c-surface-2); }
}

/* 06 · Seriositäts-Check: four check cards -------------------------------- */
.fq-check .promise__mark {
	display: grid; place-items: center; width: 2.75rem; height: 2.75rem; clip-path: var(--oct);
	background: var(--violet-600); color: var(--white); font-style: normal; line-height: 1;
}
.fq-check .promise__mark .i { width: 1.35rem; height: 1.35rem; }
.fq-check .promise__text a { font-weight: 700; }
.fq-check__tip { margin-top: var(--sp-6); }

/* 07 · call: strip + bereithalten + 112 ----------------------------------- */
.fq-call__grid { display: grid; gap: var(--sp-5); align-items: start; }
.fq-call__main { max-width: 62ch; }
.fq-ready {
	display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-4); row-gap: 0.25rem; align-items: start;
	padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-left: 6px solid var(--violet-500); border-radius: var(--r-md);
}
.fq-ready__badge { grid-row: span 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; clip-path: var(--oct); background: var(--c-surface-2); color: var(--c-accent); }
.fq-ready__badge .i { width: 1.35rem; height: 1.35rem; }
.fq-ready__label { font-weight: 700; color: var(--c-heading); }
.fq-ready__text { grid-column: 2; color: var(--c-fg); }
@media (min-width: 60em) {
	.fq-call__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--sp-7); }
}
